]> granicus.if.org Git - neomutt/commitdiff
doxy: expandos
authorRichard Russon <rich@flatcap.org>
Sat, 4 Aug 2018 22:07:56 +0000 (23:07 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 4 Aug 2018 22:20:21 +0000 (23:20 +0100)
18 files changed:
addrbook.c
browser.c
compose.c
compress.c
format_flags.h
hdrline.c
mutt_history.c
muttlib.c
ncrypt/crypt_gpgme.c
ncrypt/pgpinvoke.c
ncrypt/pgpkey.c
ncrypt/smime.c
nntp/newsrc.c
query.c
recvattach.c
remailer.c
sidebar.c
status.c

index 78a54f3883029c6a111a67820944015a37802951..215e189828eba92b3c85e8868c3be3dac4b116f7 100644 (file)
@@ -58,21 +58,7 @@ static const struct Mapping AliasHelp[] = {
 };
 
 /**
- * alias_format_str - Format a string for the alias list
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * alias_format_str() is a callback function for mutt_expando_format().
+ * alias_format_str - Format a string for the alias list - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index a424f5d3b6d35da1a1b39e4dcc82ce3e849c4439..74142282712816bc15bbffe64ce145525738e5d6 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -339,21 +339,7 @@ static bool link_is_dir(const char *folder, const char *path)
 }
 
 /**
- * folder_format_str - Format a string for the folder browser
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * folder_format_str() is a callback function for mutt_expando_format().
+ * folder_format_str - Format a string for the folder browser - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
@@ -596,21 +582,7 @@ static const char *folder_format_str(char *buf, size_t buflen, size_t col, int c
 
 #ifdef USE_NNTP
 /**
- * group_index_format_str - Format a string for the newsgroup menu
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * group_index_format_str() is a callback function for mutt_expando_format().
+ * group_index_format_str - Format a string for the newsgroup menu - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index 07f12345aeddfae16b1a291995c001329f9c9479..4853ea573f4db4b77360c141be68b8fb9bc1ab6b 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -795,21 +795,7 @@ static unsigned long cum_attachs_size(struct Menu *menu)
 }
 
 /**
- * compose_format_str - Create the status bar string for compose mode
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * compose_format_str() is a callback function for mutt_expando_format().
+ * compose_format_str - Create the status bar string for compose mode - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index b78c006463422bee9d64ffb117c1ed979cbbe2b0..f956d07c7f55d4765fb8ca68a20f9dcc9648cdd8 100644 (file)
@@ -336,21 +336,7 @@ static char *escape_path(char *src)
 }
 
 /**
- * compress_format_str - Expand the filenames in a command string
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * compress_format_str() is a callback function for mutt_expando_format().
+ * compress_format_str - Expand the filenames in a command string - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index e19e62d056895a7701376cb570d602b1f48c946d..dee94f5da2c02de6020099dd06955bc0916737ec 100644 (file)
@@ -40,6 +40,27 @@ enum FormatFlag
   MUTT_FORMAT_NOFILTER    = (1 << 7)  /**< do not allow filtering on this pass */
 };
 
+/**
+ * format_t - Prototype for a mutt_expando_format() callback function
+ * @param[out] buf      Buffer in which to save string
+ * @param[in]  buflen   Buffer length
+ * @param[in]  col      Starting column
+ * @param[in]  cols     Number of screen columns
+ * @param[in]  op       printf-like operator, e.g. 't'
+ * @param[in]  src      printf-like format string
+ * @param[in]  prec     Field precision, e.g. "-3.4"
+ * @param[in]  if_str   If condition is met, display this string
+ * @param[in]  else_str Otherwise, display this string
+ * @param[in]  data     Pointer to the mailbox Context
+ * @param[in]  flags    Format flags
+ * @retval src (unchanged)
+ *
+ * Each callback function implements some expandos, e.g.
+ *
+ * | Expando | Description
+ * |:--------|:-----------
+ * | \%t     | Title
+ */
 typedef const char *format_t(char *buf, size_t buflen, size_t col, int cols,
                              char op, const char *src, const char *prec,
                              const char *if_str, const char *else_str,
index 976cfc520299add9137f055637929171d54d82cc..9f5e5cd5ad9421886ad1ffb1ae7e5f97fec45339 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -464,21 +464,7 @@ static bool thread_is_old(struct Context *ctx, struct Header *hdr)
 }
 
 /**
- * index_format_str - Format a string for the index list
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * index_format_str() is a callback function for mutt_expando_format().
+ * index_format_str - Format a string for the index list - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:-----------------------------------------------------------------
index 4db61ba71b2350f8dec142a56251a1cea0ad6951..8b1d9720686a66ab1302886b5e703e87bed567f0 100644 (file)
@@ -41,21 +41,7 @@ static const struct Mapping HistoryHelp[] = {
 };
 
 /**
- * history_format_str - Format a string for the history list
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * history_format_str() is a callback function for mutt_expando_format().
+ * history_format_str - Format a string for the history list - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------
index 793cdbc235969767fdae4359d84100278e700776..684af9aaf2a6d0c31467599cecbafc0c7b431ba1 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -828,7 +828,7 @@ void mutt_safe_path(char *buf, size_t buflen, struct Address *a)
  * @param[in]  col      Starting column
  * @param[in]  cols     Number of screen columns
  * @param[in]  src      Printf-like format string
- * @param[in]  callback Callback for processing
+ * @param[in]  callback Callback - Implements ::format_t
  * @param[in]  data     Callback data
  * @param[in]  flags    Callback flags
  */
index d0348d1f7062e1377fa374a9c57e0a751492ebdb..5ad39990269d58ae40f4ccf308ea192ccb770a4f 100644 (file)
@@ -2920,21 +2920,7 @@ int smime_gpgme_application_handler(struct Body *a, struct State *s)
 }
 
 /**
- * crypt_format_str - Format a string for the key selection menu
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * crypt_format_str() is a callback function for mutt_expando_format().
+ * crypt_format_str - Format a string for the key selection menu - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index 372f6cd427076b9bdeac6ac711f4e62766ec19f7..d9980eea28fab67e6cffe982d1b62317350a6f48 100644 (file)
@@ -79,21 +79,7 @@ struct PgpCommandContext
 };
 
 /**
- * fmt_pgp_command - Format a PGP command string
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * fmt_pgp_command() is a callback function for mutt_expando_format().
+ * fmt_pgp_command - Format a PGP command string - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:-----------------------------------------------------------------
index 976c2d0d9e568f3136a96853c7acdb665934f8a2..475bca7bc1b01c04d4b9a674ac2f6d20b2fdb721 100644 (file)
@@ -150,21 +150,7 @@ struct PgpEntry
 };
 
 /**
- * pgp_entry_fmt - Format an entry on the PGP key selection menu
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * pgp_entry_fmt() is a callback function for mutt_expando_format().
+ * pgp_entry_fmt - Format an entry on the PGP key selection menu - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index e58c5b9b369115e46a7ebe2bed7e0547a7c31411..3881e5a93e66c04bb0afd86ec233c848a0694d27 100644 (file)
@@ -193,21 +193,7 @@ int smime_class_valid_passphrase(void)
  */
 
 /**
- * fmt_smime_command - Format an SMIME command
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * fmt_smime_command() is a callback function for mutt_expando_format().
+ * fmt_smime_command - Format an SMIME command - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:-----------------------------------------------------------------
index 2e1a1ff51515e2dc819a36da3e52f33d0c3b6ad1..e3997e49a0aa39bdc1bb78369f5a821017ee031a 100644 (file)
@@ -942,21 +942,7 @@ void nntp_clear_cache(struct NntpServer *nserv)
 }
 
 /**
- * nntp_format_str - Expand the newsrc filename
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * nntp_format_str() is a callback function for mutt_expando_format().
+ * nntp_format_str - Expand the newsrc filename - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
diff --git a/query.c b/query.c
index 28e973a1790d62707577cd87a7a6f01bedd3254f..4cf6c8294bd4a6aaecdbad4c44054d7f19c300e3 100644 (file)
--- a/query.c
+++ b/query.c
@@ -233,21 +233,7 @@ static int query_search(struct Menu *m, regex_t *re, int n)
 }
 
 /**
- * query_format_str - Format a string for the query menu
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * query_format_str() is a callback function for mutt_expando_format().
+ * query_format_str - Format a string for the query menu - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index e2b5258b5c5a7e9da76bbb2428295f3651685346..4372b37a8aad03813863f960dee55fa423458447 100644 (file)
@@ -174,21 +174,7 @@ void mutt_update_tree(struct AttachCtx *actx)
 }
 
 /**
- * attach_format_str - Format a string for the attachment menu
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * attach_format_str() is a callback function for mutt_expando_format().
+ * attach_format_str - Format a string for the attachment menu - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index cf4cb177a1ab0754f2e2785649d7086a7b198429..9094daa53d28df92bfc1d6a7841d903bff8bfc1c 100644 (file)
@@ -414,21 +414,7 @@ static const char *mix_format_caps(struct Remailer *r)
 }
 
 /**
- * mix_format_str - Format a string for the remailer menu
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * mix_format_str() is a callback function for mutt_expando_format().
+ * mix_format_str - Format a string for the remailer menu - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index 036b738e0e8ede6ea389c19d697840edaeb75050..a27fae311f83e7975754946a18de0f18b0710df3 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -107,21 +107,7 @@ enum SidebarSrc
 } sidebar_source = SB_SRC_INCOMING;
 
 /**
- * sidebar_format_str - Format a string for the sidebar
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * sidebar_format_str() is a callback function for mutt_expando_format().
+ * sidebar_format_str - Format a string for the sidebar - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------
index 220ac4cfb7bd89e9578cd5d152a9bf333b4550ff..de2473931a79c2bf43598bb5e65f77308818dbcc 100644 (file)
--- a/status.c
+++ b/status.c
@@ -66,21 +66,7 @@ static void status_line(char *buf, size_t buflen, size_t col, int cols,
                         struct Menu *menu, const char *p);
 
 /**
- * status_format_str - Create the status bar string
- * @param[out] buf      Buffer in which to save string
- * @param[in]  buflen   Buffer length
- * @param[in]  col      Starting column
- * @param[in]  cols     Number of screen columns
- * @param[in]  op       printf-like operator, e.g. 't'
- * @param[in]  src      printf-like format string
- * @param[in]  prec     Field precision, e.g. "-3.4"
- * @param[in]  if_str   If condition is met, display this string
- * @param[in]  else_str Otherwise, display this string
- * @param[in]  data     Pointer to the mailbox Context
- * @param[in]  flags    Format flags
- * @retval src (unchanged)
- *
- * status_format_str() is a callback function for mutt_expando_format().
+ * status_format_str - Create the status bar string - Implements ::format_t
  *
  * | Expando | Description
  * |:--------|:--------------------------------------------------------