--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 171C4431FC0\r
+ for <notmuch@notmuchmail.org>; Wed, 1 Jan 2014 07:00:16 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id I59gL82poopI for <notmuch@notmuchmail.org>;\r
+ Wed, 1 Jan 2014 07:00:11 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 84D20431FAF\r
+ for <notmuch@notmuchmail.org>; Wed, 1 Jan 2014 07:00:10 -0800 (PST)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id ED8831000B2;\r
+ Wed, 1 Jan 2014 17:00:04 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 2/2] lib: modify notmuch.h for automatic document\r
+ generation\r
+In-Reply-To:\r
+ <8900d3fb7b01b8b97f35deb8030affea32d50fe9.1385826040.git.jani@nikula.org>\r
+References: <cover.1385826040.git.jani@nikula.org>\r
+ <8900d3fb7b01b8b97f35deb8030affea32d50fe9.1385826040.git.jani@nikula.org>\r
+User-Agent: Notmuch/0.17+13~gdfcf116 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Wed, 01 Jan 2014 17:00:04 +0200\r
+Message-ID: <m2wqijoih7.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 01 Jan 2014 15:00:16 -0000\r
+\r
+On Sat, Nov 30 2013, Jani Nikula <jani@nikula.org> wrote:\r
+\r
+> Minimal changes to produce a sensible result.\r
+> ---\r
+\r
+Looks good but does not apply anymore (blame Austin)\r
+Also the doxygen -s -g (+ edits) looks good ;D\r
+\r
+Tomi\r
+\r
+\r
+> lib/notmuch.h | 436 +++++++++++++++++++++++++++++++++++++++-------------------\r
+> 1 file changed, 296 insertions(+), 140 deletions(-)\r
+>\r
+> diff --git a/lib/notmuch.h b/lib/notmuch.h\r
+> index 7c3a30c..708b603 100644\r
+> --- a/lib/notmuch.h\r
+> +++ b/lib/notmuch.h\r
+> @@ -18,9 +18,19 @@\r
+> * Author: Carl Worth <cworth@cworth.org>\r
+> */\r
+> \r
+> +/**\r
+> + * @defgroup notmuch The notmuch API\r
+> + *\r
+> + * Not much of an email library, (just index and search)\r
+> + *\r
+> + * @{\r
+> + */\r
+> +\r
+> #ifndef NOTMUCH_H\r
+> #define NOTMUCH_H\r
+> \r
+> +#ifndef __DOXYGEN__\r
+> +\r
+> #ifdef __cplusplus\r
+> # define NOTMUCH_BEGIN_DECLS extern "C" {\r
+> # define NOTMUCH_END_DECLS }\r
+> @@ -45,18 +55,20 @@ NOTMUCH_BEGIN_DECLS\r
+> #define NOTMUCH_MINOR_VERSION 17\r
+> #define NOTMUCH_MICRO_VERSION 0\r
+> \r
+> -/*\r
+> +#endif /* __DOXYGEN__ */\r
+> +\r
+> +/**\r
+> * Check the version of the notmuch library being compiled against.\r
+> *\r
+> * Return true if the library being compiled against is of the\r
+> * specified version or above. For example:\r
+> *\r
+> - * #if NOTMUCH_CHECK_VERSION(0, 18, 0)\r
+> + * \#if NOTMUCH_CHECK_VERSION(0, 18, 0)\r
+> * (code requiring notmuch 0.18 or above)\r
+> - * #endif\r
+> + * \#endif\r
+> *\r
+> * NOTMUCH_CHECK_VERSION has been defined since version 0.17.0; you\r
+> - * can use #if !defined(NOTMUCH_CHECK_VERSION) to check for versions\r
+> + * can use \#if !defined(NOTMUCH_CHECK_VERSION) to check for versions\r
+> * prior to that.\r
+> */\r
+> #define NOTMUCH_CHECK_VERSION (major, minor, micro) \\r
+> @@ -65,80 +77,97 @@ NOTMUCH_BEGIN_DECLS\r
+> (NOTMUCH_MAJOR_VERSION == (major) && NOTMUCH_MINOR_VERSION == (minor) && \\r
+> NOTMUCH_MICRO_VERSION >= (micro)))\r
+> \r
+> +/**\r
+> + * Notmuch boolean type.\r
+> + */\r
+> typedef int notmuch_bool_t;\r
+> \r
+> -/* Status codes used for the return values of most functions.\r
+> +/**\r
+> + * Status codes used for the return values of most functions.\r
+> *\r
+> * A zero value (NOTMUCH_STATUS_SUCCESS) indicates that the function\r
+> - * completed without error. Any other value indicates an error as\r
+> - * follows:\r
+> - *\r
+> - * NOTMUCH_STATUS_SUCCESS: No error occurred.\r
+> - *\r
+> - * NOTMUCH_STATUS_OUT_OF_MEMORY: Out of memory\r
+> - *\r
+> - * XXX: We don't really want to expose this lame XAPIAN_EXCEPTION\r
+> - * value. Instead we should map to things like DATABASE_LOCKED or\r
+> - * whatever.\r
+> - *\r
+> - * NOTMUCH_STATUS_READ_ONLY_DATABASE: An attempt was made to write to\r
+> - * a database opened in read-only mode.\r
+> + * completed without error. Any other value indicates an error.\r
+> *\r
+> - * NOTMUCH_STATUS_XAPIAN_EXCEPTION: A Xapian exception occurred\r
+> - *\r
+> - * NOTMUCH_STATUS_FILE_ERROR: An error occurred trying to read or\r
+> - * write to a file (this could be file not found, permission\r
+> - * denied, etc.)\r
+> - *\r
+> - * NOTMUCH_STATUS_FILE_NOT_EMAIL: A file was presented that doesn't\r
+> - * appear to be an email message.\r
+> - *\r
+> - * NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: A file contains a message ID\r
+> - * that is identical to a message already in the database.\r
+> - *\r
+> - * NOTMUCH_STATUS_NULL_POINTER: The user erroneously passed a NULL\r
+> - * pointer to a notmuch function.\r
+> - *\r
+> - * NOTMUCH_STATUS_TAG_TOO_LONG: A tag value is too long (exceeds\r
+> - * NOTMUCH_TAG_MAX)\r
+> - *\r
+> - * NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW: The notmuch_message_thaw\r
+> - * function has been called more times than notmuch_message_freeze.\r
+> - *\r
+> - * NOTMUCH_STATUS_UNBALANCED_ATOMIC: notmuch_database_end_atomic has\r
+> - * been called more times than notmuch_database_begin_atomic.\r
+> - *\r
+> - * And finally:\r
+> - *\r
+> - * NOTMUCH_STATUS_LAST_STATUS: Not an actual status value. Just a way\r
+> - * to find out how many valid status values there are.\r
+> */\r
+> typedef enum _notmuch_status {\r
+> + /**\r
+> + * No error occurred.\r
+> + */\r
+> NOTMUCH_STATUS_SUCCESS = 0,\r
+> + /**\r
+> + * Out of memory.\r
+> + */\r
+> NOTMUCH_STATUS_OUT_OF_MEMORY,\r
+> + /**\r
+> + * An attempt was made to write to a database opened in read-only\r
+> + * mode.\r
+> + */\r
+> NOTMUCH_STATUS_READ_ONLY_DATABASE,\r
+> + /**\r
+> + * A Xapian exception occurred.\r
+> + */\r
+> NOTMUCH_STATUS_XAPIAN_EXCEPTION,\r
+> + /**\r
+> + * An error occurred trying to read or write to a file (this could\r
+> + * be file not found, permission denied, etc.)\r
+> + *\r
+> + * @todo We don't really want to expose this lame XAPIAN_EXCEPTION\r
+> + * value. Instead we should map to things like DATABASE_LOCKED or\r
+> + * whatever.\r
+> + */\r
+> NOTMUCH_STATUS_FILE_ERROR,\r
+> + /**\r
+> + * A file was presented that doesn't appear to be an email\r
+> + * message.\r
+> + */\r
+> NOTMUCH_STATUS_FILE_NOT_EMAIL,\r
+> + /**\r
+> + * A file contains a message ID that is identical to a message\r
+> + * already in the database.\r
+> + */\r
+> NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID,\r
+> + /**\r
+> + * The user erroneously passed a NULL pointer to a notmuch\r
+> + * function.\r
+> + */\r
+> NOTMUCH_STATUS_NULL_POINTER,\r
+> + /**\r
+> + * A tag value is too long (exceeds NOTMUCH_TAG_MAX).\r
+> + */\r
+> NOTMUCH_STATUS_TAG_TOO_LONG,\r
+> + /**\r
+> + * The notmuch_message_thaw function has been called more times\r
+> + * than notmuch_message_freeze.\r
+> + */\r
+> NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW,\r
+> + /**\r
+> + * notmuch_database_end_atomic has been called more times than\r
+> + * notmuch_database_begin_atomic.\r
+> + */\r
+> NOTMUCH_STATUS_UNBALANCED_ATOMIC,\r
+> + /**\r
+> + * The operation is not supported.\r
+> + */\r
+> NOTMUCH_STATUS_UNSUPPORTED_OPERATION,\r
+> -\r
+> + /**\r
+> + * Not an actual status value. Just a way to find out how many\r
+> + * valid status values there are.\r
+> + */\r
+> NOTMUCH_STATUS_LAST_STATUS\r
+> } notmuch_status_t;\r
+> \r
+> -/* Get a string representation of a notmuch_status_t value.\r
+> +/**\r
+> + * Get a string representation of a notmuch_status_t value.\r
+> *\r
+> * The result is read-only.\r
+> */\r
+> const char *\r
+> notmuch_status_to_string (notmuch_status_t status);\r
+> \r
+> +\r
+> /* Various opaque data types. For each notmuch_<foo>_t see the various\r
+> * notmuch_<foo> functions below. */\r
+> +#ifndef __DOXYGEN__\r
+> typedef struct _notmuch_database notmuch_database_t;\r
+> typedef struct _notmuch_query notmuch_query_t;\r
+> typedef struct _notmuch_threads notmuch_threads_t;\r
+> @@ -148,8 +177,10 @@ typedef struct _notmuch_message notmuch_message_t;\r
+> typedef struct _notmuch_tags notmuch_tags_t;\r
+> typedef struct _notmuch_directory notmuch_directory_t;\r
+> typedef struct _notmuch_filenames notmuch_filenames_t;\r
+> +#endif /* __DOXYGEN__ */\r
+> \r
+> -/* Create a new, empty notmuch database located at 'path'.\r
+> +/**\r
+> + * Create a new, empty notmuch database located at 'path'.\r
+> *\r
+> * The path should be a top-level directory to a collection of\r
+> * plain-text email messages (one message per file). This call will\r
+> @@ -185,12 +216,22 @@ typedef struct _notmuch_filenames notmuch_filenames_t;\r
+> notmuch_status_t\r
+> notmuch_database_create (const char *path, notmuch_database_t **database);\r
+> \r
+> +/**\r
+> + * Database open mode for notmuch_database_open.\r
+> + */\r
+> typedef enum {\r
+> + /**\r
+> + * Open database for reading only.\r
+> + */\r
+> NOTMUCH_DATABASE_MODE_READ_ONLY = 0,\r
+> + /**\r
+> + * Open database for reading and writing.\r
+> + */\r
+> NOTMUCH_DATABASE_MODE_READ_WRITE\r
+> } notmuch_database_mode_t;\r
+> \r
+> -/* Open an existing notmuch database located at 'path'.\r
+> +/**\r
+> + * Open an existing notmuch database located at 'path'.\r
+> *\r
+> * The database should have been created at some time in the past,\r
+> * (not necessarily by this process), by calling\r
+> @@ -226,7 +267,8 @@ notmuch_database_open (const char *path,\r
+> notmuch_database_mode_t mode,\r
+> notmuch_database_t **database);\r
+> \r
+> -/* Close the given notmuch database.\r
+> +/**\r
+> + * Close the given notmuch database.\r
+> *\r
+> * After notmuch_database_close has been called, calls to other\r
+> * functions on objects derived from this database may either behave\r
+> @@ -240,12 +282,14 @@ notmuch_database_open (const char *path,\r
+> void\r
+> notmuch_database_close (notmuch_database_t *database);\r
+> \r
+> -/* A callback invoked by notmuch_database_compact to notify the user\r
+> +/**\r
+> + * A callback invoked by notmuch_database_compact to notify the user\r
+> * of the progress of the compaction process.\r
+> */\r
+> typedef void (*notmuch_compact_status_cb_t)(const char *message, void *closure);\r
+> \r
+> -/* Compact a notmuch database, backing up the original database to the\r
+> +/**\r
+> + * Compact a notmuch database, backing up the original database to the\r
+> * given path.\r
+> *\r
+> * The database will be opened with NOTMUCH_DATABASE_MODE_READ_WRITE\r
+> @@ -261,33 +305,41 @@ notmuch_database_compact (const char* path,\r
+> notmuch_compact_status_cb_t status_cb,\r
+> void *closure);\r
+> \r
+> -/* Destroy the notmuch database, closing it if necessary and freeing\r
+> +/**\r
+> + * Destroy the notmuch database, closing it if necessary and freeing\r
+> * all associated resources.\r
+> */\r
+> void\r
+> notmuch_database_destroy (notmuch_database_t *database);\r
+> \r
+> -/* Return the database path of the given database.\r
+> +/**\r
+> + * Return the database path of the given database.\r
+> *\r
+> * The return value is a string owned by notmuch so should not be\r
+> - * modified nor freed by the caller. */\r
+> + * modified nor freed by the caller.\r
+> + */\r
+> const char *\r
+> notmuch_database_get_path (notmuch_database_t *database);\r
+> \r
+> -/* Return the database format version of the given database. */\r
+> +/**\r
+> + * Return the database format version of the given database.\r
+> + */\r
+> unsigned int\r
+> notmuch_database_get_version (notmuch_database_t *database);\r
+> \r
+> -/* Does this database need to be upgraded before writing to it?\r
+> +/**\r
+> + * Does this database need to be upgraded before writing to it?\r
+> *\r
+> * If this function returns TRUE then no functions that modify the\r
+> * database (notmuch_database_add_message, notmuch_message_add_tag,\r
+> * notmuch_directory_set_mtime, etc.) will work unless the function\r
+> - * notmuch_database_upgrade is called successfully first. */\r
+> + * notmuch_database_upgrade is called successfully first.\r
+> + */\r
+> notmuch_bool_t\r
+> notmuch_database_needs_upgrade (notmuch_database_t *database);\r
+> \r
+> -/* Upgrade the current database.\r
+> +/**\r
+> + * Upgrade the current database.\r
+> *\r
+> * After opening a database in read-write mode, the client should\r
+> * check if an upgrade is needed (notmuch_database_needs_upgrade) and\r
+> @@ -306,7 +358,8 @@ notmuch_database_upgrade (notmuch_database_t *database,\r
+> double progress),\r
+> void *closure);\r
+> \r
+> -/* Begin an atomic database operation.\r
+> +/**\r
+> + * Begin an atomic database operation.\r
+> *\r
+> * Any modifications performed between a successful begin and a\r
+> * notmuch_database_end_atomic will be applied to the database\r
+> @@ -327,7 +380,8 @@ notmuch_database_upgrade (notmuch_database_t *database,\r
+> notmuch_status_t\r
+> notmuch_database_begin_atomic (notmuch_database_t *notmuch);\r
+> \r
+> -/* Indicate the end of an atomic database operation.\r
+> +/**\r
+> + * Indicate the end of an atomic database operation.\r
+> *\r
+> * Return value:\r
+> *\r
+> @@ -342,7 +396,8 @@ notmuch_database_begin_atomic (notmuch_database_t *notmuch);\r
+> notmuch_status_t\r
+> notmuch_database_end_atomic (notmuch_database_t *notmuch);\r
+> \r
+> -/* Retrieve a directory object from the database for 'path'.\r
+> +/**\r
+> + * Retrieve a directory object from the database for 'path'.\r
+> *\r
+> * Here, 'path' should be a path relative to the path of 'database'\r
+> * (see notmuch_database_get_path), or else should be an absolute path\r
+> @@ -365,7 +420,8 @@ notmuch_database_get_directory (notmuch_database_t *database,\r
+> const char *path,\r
+> notmuch_directory_t **directory);\r
+> \r
+> -/* Add a new message to the given notmuch database or associate an\r
+> +/**\r
+> + * Add a new message to the given notmuch database or associate an\r
+> * additional filename with an existing message.\r
+> *\r
+> * Here, 'filename' should be a path relative to the path of\r
+> @@ -416,7 +472,8 @@ notmuch_database_add_message (notmuch_database_t *database,\r
+> const char *filename,\r
+> notmuch_message_t **message);\r
+> \r
+> -/* Remove a message filename from the given notmuch database. If the\r
+> +/**\r
+> + * Remove a message filename from the given notmuch database. If the\r
+> * message has no more filenames, remove the message.\r
+> *\r
+> * If the same message (as determined by the message ID) is still\r
+> @@ -444,7 +501,8 @@ notmuch_status_t\r
+> notmuch_database_remove_message (notmuch_database_t *database,\r
+> const char *filename);\r
+> \r
+> -/* Find a message with the given message_id.\r
+> +/**\r
+> + * Find a message with the given message_id.\r
+> *\r
+> * If a message with the given message_id is found then, on successful return\r
+> * (NOTMUCH_STATUS_SUCCESS) '*message' will be initialized to a message\r
+> @@ -471,7 +529,8 @@ notmuch_database_find_message (notmuch_database_t *database,\r
+> const char *message_id,\r
+> notmuch_message_t **message);\r
+> \r
+> -/* Find a message with the given filename.\r
+> +/**\r
+> + * Find a message with the given filename.\r
+> *\r
+> * If the database contains a message with the given filename then, on\r
+> * successful return (NOTMUCH_STATUS_SUCCESS) '*message' will be initialized to\r
+> @@ -498,7 +557,8 @@ notmuch_database_find_message_by_filename (notmuch_database_t *notmuch,\r
+> const char *filename,\r
+> notmuch_message_t **message);\r
+> \r
+> -/* Return a list of all tags found in the database.\r
+> +/**\r
+> + * Return a list of all tags found in the database.\r
+> *\r
+> * This function creates a list of all tags found in the database. The\r
+> * resulting list contains all tags from all messages found in the database.\r
+> @@ -508,7 +568,8 @@ notmuch_database_find_message_by_filename (notmuch_database_t *notmuch,\r
+> notmuch_tags_t *\r
+> notmuch_database_get_all_tags (notmuch_database_t *db);\r
+> \r
+> -/* Create a new query for 'database'.\r
+> +/**\r
+> + * Create a new query for 'database'.\r
+> *\r
+> * Here, 'database' should be an open database, (see\r
+> * notmuch_database_open and notmuch_database_create).\r
+> @@ -536,19 +597,36 @@ notmuch_query_t *\r
+> notmuch_query_create (notmuch_database_t *database,\r
+> const char *query_string);\r
+> \r
+> -/* Sort values for notmuch_query_set_sort */\r
+> +/**\r
+> + * Sort values for notmuch_query_set_sort.\r
+> + */\r
+> typedef enum {\r
+> + /**\r
+> + * Oldest first.\r
+> + */\r
+> NOTMUCH_SORT_OLDEST_FIRST,\r
+> + /**\r
+> + * Newest first.\r
+> + */\r
+> NOTMUCH_SORT_NEWEST_FIRST,\r
+> + /**\r
+> + * Sort by message-id.\r
+> + */\r
+> NOTMUCH_SORT_MESSAGE_ID,\r
+> + /**\r
+> + * Do not sort.\r
+> + */\r
+> NOTMUCH_SORT_UNSORTED\r
+> } notmuch_sort_t;\r
+> \r
+> -/* Return the query_string of this query. See notmuch_query_create. */\r
+> +/**\r
+> + * Return the query_string of this query. See notmuch_query_create.\r
+> + */\r
+> const char *\r
+> notmuch_query_get_query_string (notmuch_query_t *query);\r
+> \r
+> -/* Exclude values for notmuch_query_set_omit_excluded. The strange\r
+> +/**\r
+> + * Exclude values for notmuch_query_set_omit_excluded. The strange\r
+> * order is to maintain backward compatibility: the old FALSE/TRUE\r
+> * options correspond to the new\r
+> * NOTMUCH_EXCLUDE_FLAG/NOTMUCH_EXCLUDE_TRUE options.\r
+> @@ -560,7 +638,8 @@ typedef enum {\r
+> NOTMUCH_EXCLUDE_ALL\r
+> } notmuch_exclude_t;\r
+> \r
+> -/* Specify whether to omit excluded results or simply flag them. By\r
+> +/**\r
+> + * Specify whether to omit excluded results or simply flag them. By\r
+> * default, this is set to TRUE.\r
+> *\r
+> * If set to TRUE or ALL, notmuch_query_search_messages will omit excluded\r
+> @@ -590,21 +669,29 @@ void\r
+> notmuch_query_set_omit_excluded (notmuch_query_t *query,\r
+> notmuch_exclude_t omit_excluded);\r
+> \r
+> -/* Specify the sorting desired for this query. */\r
+> +/**\r
+> + * Specify the sorting desired for this query.\r
+> + */\r
+> void\r
+> notmuch_query_set_sort (notmuch_query_t *query, notmuch_sort_t sort);\r
+> \r
+> -/* Return the sort specified for this query. See notmuch_query_set_sort. */\r
+> +/**\r
+> + * Return the sort specified for this query. See\r
+> + * notmuch_query_set_sort.\r
+> + */\r
+> notmuch_sort_t\r
+> notmuch_query_get_sort (notmuch_query_t *query);\r
+> \r
+> -/* Add a tag that will be excluded from the query results by default.\r
+> +/**\r
+> + * Add a tag that will be excluded from the query results by default.\r
+> * This exclusion will be overridden if this tag appears explicitly in\r
+> - * the query. */\r
+> + * the query.\r
+> + */\r
+> void\r
+> notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag);\r
+> \r
+> -/* Execute a query for threads, returning a notmuch_threads_t object\r
+> +/**\r
+> + * Execute a query for threads, returning a notmuch_threads_t object\r
+> * which can be used to iterate over the results. The returned threads\r
+> * object is owned by the query and as such, will only be valid until\r
+> * notmuch_query_destroy.\r
+> @@ -645,7 +732,8 @@ notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag);\r
+> notmuch_threads_t *\r
+> notmuch_query_search_threads (notmuch_query_t *query);\r
+> \r
+> -/* Execute a query for messages, returning a notmuch_messages_t object\r
+> +/**\r
+> + * Execute a query for messages, returning a notmuch_messages_t object\r
+> * which can be used to iterate over the results. The returned\r
+> * messages object is owned by the query and as such, will only be\r
+> * valid until notmuch_query_destroy.\r
+> @@ -686,7 +774,8 @@ notmuch_query_search_threads (notmuch_query_t *query);\r
+> notmuch_messages_t *\r
+> notmuch_query_search_messages (notmuch_query_t *query);\r
+> \r
+> -/* Destroy a notmuch_query_t along with any associated resources.\r
+> +/**\r
+> + * Destroy a notmuch_query_t along with any associated resources.\r
+> *\r
+> * This will in turn destroy any notmuch_threads_t and\r
+> * notmuch_messages_t objects generated by this query, (and in\r
+> @@ -697,7 +786,8 @@ notmuch_query_search_messages (notmuch_query_t *query);\r
+> void\r
+> notmuch_query_destroy (notmuch_query_t *query);\r
+> \r
+> -/* Is the given 'threads' iterator pointing at a valid thread.\r
+> +/**\r
+> + * Is the given 'threads' iterator pointing at a valid thread.\r
+> *\r
+> * When this function returns TRUE, notmuch_threads_get will return a\r
+> * valid object. Whereas when this function returns FALSE,\r
+> @@ -709,7 +799,8 @@ notmuch_query_destroy (notmuch_query_t *query);\r
+> notmuch_bool_t\r
+> notmuch_threads_valid (notmuch_threads_t *threads);\r
+> \r
+> -/* Get the current thread from 'threads' as a notmuch_thread_t.\r
+> +/**\r
+> + * Get the current thread from 'threads' as a notmuch_thread_t.\r
+> *\r
+> * Note: The returned thread belongs to 'threads' and has a lifetime\r
+> * identical to it (and the query to which it belongs).\r
+> @@ -723,7 +814,8 @@ notmuch_threads_valid (notmuch_threads_t *threads);\r
+> notmuch_thread_t *\r
+> notmuch_threads_get (notmuch_threads_t *threads);\r
+> \r
+> -/* Move the 'threads' iterator to the next thread.\r
+> +/**\r
+> + * Move the 'threads' iterator to the next thread.\r
+> *\r
+> * If 'threads' is already pointing at the last thread then the\r
+> * iterator will be moved to a point just beyond that last thread,\r
+> @@ -736,7 +828,8 @@ notmuch_threads_get (notmuch_threads_t *threads);\r
+> void\r
+> notmuch_threads_move_to_next (notmuch_threads_t *threads);\r
+> \r
+> -/* Destroy a notmuch_threads_t object.\r
+> +/**\r
+> + * Destroy a notmuch_threads_t object.\r
+> *\r
+> * It's not strictly necessary to call this function. All memory from\r
+> * the notmuch_threads_t object will be reclaimed when the\r
+> @@ -745,7 +838,8 @@ notmuch_threads_move_to_next (notmuch_threads_t *threads);\r
+> void\r
+> notmuch_threads_destroy (notmuch_threads_t *threads);\r
+> \r
+> -/* Return an estimate of the number of messages matching a search\r
+> +/**\r
+> + * Return an estimate of the number of messages matching a search.\r
+> *\r
+> * This function performs a search and returns Xapian's best\r
+> * guess as to number of matching messages.\r
+> @@ -755,8 +849,9 @@ notmuch_threads_destroy (notmuch_threads_t *threads);\r
+> */\r
+> unsigned\r
+> notmuch_query_count_messages (notmuch_query_t *query);\r
+> - \r
+> -/* Return the number of threads matching a search.\r
+> +\r
+> +/**\r
+> + * Return the number of threads matching a search.\r
+> *\r
+> * This function performs a search and returns the number of unique thread IDs\r
+> * in the matching messages. This is the same as number of threads matching a\r
+> @@ -770,7 +865,8 @@ notmuch_query_count_messages (notmuch_query_t *query);\r
+> unsigned\r
+> notmuch_query_count_threads (notmuch_query_t *query);\r
+> \r
+> -/* Get the thread ID of 'thread'.\r
+> +/**\r
+> + * Get the thread ID of 'thread'.\r
+> *\r
+> * The returned string belongs to 'thread' and as such, should not be\r
+> * modified by the caller and will only be valid for as long as the\r
+> @@ -780,7 +876,8 @@ notmuch_query_count_threads (notmuch_query_t *query);\r
+> const char *\r
+> notmuch_thread_get_thread_id (notmuch_thread_t *thread);\r
+> \r
+> -/* Get the total number of messages in 'thread'.\r
+> +/**\r
+> + * Get the total number of messages in 'thread'.\r
+> *\r
+> * This count consists of all messages in the database belonging to\r
+> * this thread. Contrast with notmuch_thread_get_matched_messages() .\r
+> @@ -788,7 +885,8 @@ notmuch_thread_get_thread_id (notmuch_thread_t *thread);\r
+> int\r
+> notmuch_thread_get_total_messages (notmuch_thread_t *thread);\r
+> \r
+> -/* Get a notmuch_messages_t iterator for the top-level messages in\r
+> +/**\r
+> + * Get a notmuch_messages_t iterator for the top-level messages in\r
+> * 'thread' in oldest-first order.\r
+> *\r
+> * This iterator will not necessarily iterate over all of the messages\r
+> @@ -800,7 +898,8 @@ notmuch_thread_get_total_messages (notmuch_thread_t *thread);\r
+> notmuch_messages_t *\r
+> notmuch_thread_get_toplevel_messages (notmuch_thread_t *thread);\r
+> \r
+> -/* Get a notmuch_thread_t iterator for all messages in 'thread' in\r
+> +/**\r
+> + * Get a notmuch_thread_t iterator for all messages in 'thread' in\r
+> * oldest-first order.\r
+> *\r
+> * The returned list will be destroyed when the thread is destroyed.\r
+> @@ -808,7 +907,8 @@ notmuch_thread_get_toplevel_messages (notmuch_thread_t *thread);\r
+> notmuch_messages_t *\r
+> notmuch_thread_get_messages (notmuch_thread_t *thread);\r
+> \r
+> -/* Get the number of messages in 'thread' that matched the search.\r
+> +/**\r
+> + * Get the number of messages in 'thread' that matched the search.\r
+> *\r
+> * This count includes only the messages in this thread that were\r
+> * matched by the search from which the thread was created and were\r
+> @@ -819,7 +919,8 @@ notmuch_thread_get_messages (notmuch_thread_t *thread);\r
+> int\r
+> notmuch_thread_get_matched_messages (notmuch_thread_t *thread);\r
+> \r
+> -/* Get the authors of 'thread' as a UTF-8 string.\r
+> +/**\r
+> + * Get the authors of 'thread' as a UTF-8 string.\r
+> *\r
+> * The returned string is a comma-separated list of the names of the\r
+> * authors of mail messages in the query results that belong to this\r
+> @@ -833,7 +934,8 @@ notmuch_thread_get_matched_messages (notmuch_thread_t *thread);\r
+> const char *\r
+> notmuch_thread_get_authors (notmuch_thread_t *thread);\r
+> \r
+> -/* Get the subject of 'thread' as a UTF-8 string.\r
+> +/**\r
+> + * Get the subject of 'thread' as a UTF-8 string.\r
+> *\r
+> * The subject is taken from the first message (according to the query\r
+> * order---see notmuch_query_set_sort) in the query results that\r
+> @@ -847,17 +949,20 @@ notmuch_thread_get_authors (notmuch_thread_t *thread);\r
+> const char *\r
+> notmuch_thread_get_subject (notmuch_thread_t *thread);\r
+> \r
+> -/* Get the date of the oldest message in 'thread' as a time_t value.\r
+> +/**\r
+> + * Get the date of the oldest message in 'thread' as a time_t value.\r
+> */\r
+> time_t\r
+> notmuch_thread_get_oldest_date (notmuch_thread_t *thread);\r
+> \r
+> -/* Get the date of the newest message in 'thread' as a time_t value.\r
+> +/**\r
+> + * Get the date of the newest message in 'thread' as a time_t value.\r
+> */\r
+> time_t\r
+> notmuch_thread_get_newest_date (notmuch_thread_t *thread);\r
+> \r
+> -/* Get the tags for 'thread', returning a notmuch_tags_t object which\r
+> +/**\r
+> + * Get the tags for 'thread', returning a notmuch_tags_t object which\r
+> * can be used to iterate over all tags.\r
+> *\r
+> * Note: In the Notmuch database, tags are stored on individual\r
+> @@ -896,11 +1001,14 @@ notmuch_thread_get_newest_date (notmuch_thread_t *thread);\r
+> notmuch_tags_t *\r
+> notmuch_thread_get_tags (notmuch_thread_t *thread);\r
+> \r
+> -/* Destroy a notmuch_thread_t object. */\r
+> +/**\r
+> + * Destroy a notmuch_thread_t object.\r
+> + */\r
+> void\r
+> notmuch_thread_destroy (notmuch_thread_t *thread);\r
+> \r
+> -/* Is the given 'messages' iterator pointing at a valid message.\r
+> +/**\r
+> + * Is the given 'messages' iterator pointing at a valid message.\r
+> *\r
+> * When this function returns TRUE, notmuch_messages_get will return a\r
+> * valid object. Whereas when this function returns FALSE,\r
+> @@ -912,7 +1020,8 @@ notmuch_thread_destroy (notmuch_thread_t *thread);\r
+> notmuch_bool_t\r
+> notmuch_messages_valid (notmuch_messages_t *messages);\r
+> \r
+> -/* Get the current message from 'messages' as a notmuch_message_t.\r
+> +/**\r
+> + * Get the current message from 'messages' as a notmuch_message_t.\r
+> *\r
+> * Note: The returned message belongs to 'messages' and has a lifetime\r
+> * identical to it (and the query to which it belongs).\r
+> @@ -926,7 +1035,8 @@ notmuch_messages_valid (notmuch_messages_t *messages);\r
+> notmuch_message_t *\r
+> notmuch_messages_get (notmuch_messages_t *messages);\r
+> \r
+> -/* Move the 'messages' iterator to the next message.\r
+> +/**\r
+> + * Move the 'messages' iterator to the next message.\r
+> *\r
+> * If 'messages' is already pointing at the last message then the\r
+> * iterator will be moved to a point just beyond that last message,\r
+> @@ -939,7 +1049,8 @@ notmuch_messages_get (notmuch_messages_t *messages);\r
+> void\r
+> notmuch_messages_move_to_next (notmuch_messages_t *messages);\r
+> \r
+> -/* Destroy a notmuch_messages_t object.\r
+> +/**\r
+> + * Destroy a notmuch_messages_t object.\r
+> *\r
+> * It's not strictly necessary to call this function. All memory from\r
+> * the notmuch_messages_t object will be reclaimed when the containing\r
+> @@ -948,7 +1059,8 @@ notmuch_messages_move_to_next (notmuch_messages_t *messages);\r
+> void\r
+> notmuch_messages_destroy (notmuch_messages_t *messages);\r
+> \r
+> -/* Return a list of tags from all messages.\r
+> +/**\r
+> + * Return a list of tags from all messages.\r
+> *\r
+> * The resulting list is guaranteed not to contain duplicated tags.\r
+> *\r
+> @@ -963,7 +1075,8 @@ notmuch_messages_destroy (notmuch_messages_t *messages);\r
+> notmuch_tags_t *\r
+> notmuch_messages_collect_tags (notmuch_messages_t *messages);\r
+> \r
+> -/* Get the message ID of 'message'.\r
+> +/**\r
+> + * Get the message ID of 'message'.\r
+> *\r
+> * The returned string belongs to 'message' and as such, should not be\r
+> * modified by the caller and will only be valid for as long as the\r
+> @@ -977,7 +1090,8 @@ notmuch_messages_collect_tags (notmuch_messages_t *messages);\r
+> const char *\r
+> notmuch_message_get_message_id (notmuch_message_t *message);\r
+> \r
+> -/* Get the thread ID of 'message'.\r
+> +/**\r
+> + * Get the thread ID of 'message'.\r
+> *\r
+> * The returned string belongs to 'message' and as such, should not be\r
+> * modified by the caller and will only be valid for as long as the\r
+> @@ -991,7 +1105,8 @@ notmuch_message_get_message_id (notmuch_message_t *message);\r
+> const char *\r
+> notmuch_message_get_thread_id (notmuch_message_t *message);\r
+> \r
+> -/* Get a notmuch_messages_t iterator for all of the replies to\r
+> +/**\r
+> + * Get a notmuch_messages_t iterator for all of the replies to\r
+> * 'message'.\r
+> *\r
+> * Note: This call only makes sense if 'message' was ultimately\r
+> @@ -1011,7 +1126,8 @@ notmuch_message_get_thread_id (notmuch_message_t *message);\r
+> notmuch_messages_t *\r
+> notmuch_message_get_replies (notmuch_message_t *message);\r
+> \r
+> -/* Get a filename for the email corresponding to 'message'.\r
+> +/**\r
+> + * Get a filename for the email corresponding to 'message'.\r
+> *\r
+> * The returned filename is an absolute filename, (the initial\r
+> * component will match notmuch_database_get_path() ).\r
+> @@ -1029,7 +1145,8 @@ notmuch_message_get_replies (notmuch_message_t *message);\r
+> const char *\r
+> notmuch_message_get_filename (notmuch_message_t *message);\r
+> \r
+> -/* Get all filenames for the email corresponding to 'message'.\r
+> +/**\r
+> + * Get all filenames for the email corresponding to 'message'.\r
+> *\r
+> * Returns a notmuch_filenames_t iterator listing all the filenames\r
+> * associated with 'message'. These files may not have identical\r
+> @@ -1041,31 +1158,40 @@ notmuch_message_get_filename (notmuch_message_t *message);\r
+> notmuch_filenames_t *\r
+> notmuch_message_get_filenames (notmuch_message_t *message);\r
+> \r
+> -/* Message flags */\r
+> +/**\r
+> + * Message flags.\r
+> + */\r
+> typedef enum _notmuch_message_flag {\r
+> NOTMUCH_MESSAGE_FLAG_MATCH,\r
+> NOTMUCH_MESSAGE_FLAG_EXCLUDED\r
+> } notmuch_message_flag_t;\r
+> \r
+> -/* Get a value of a flag for the email corresponding to 'message'. */\r
+> +/**\r
+> + * Get a value of a flag for the email corresponding to 'message'.\r
+> + */\r
+> notmuch_bool_t\r
+> notmuch_message_get_flag (notmuch_message_t *message,\r
+> notmuch_message_flag_t flag);\r
+> \r
+> -/* Set a value of a flag for the email corresponding to 'message'. */\r
+> +/**\r
+> + * Set a value of a flag for the email corresponding to 'message'.\r
+> + */\r
+> void\r
+> notmuch_message_set_flag (notmuch_message_t *message,\r
+> notmuch_message_flag_t flag, notmuch_bool_t value);\r
+> \r
+> -/* Get the date of 'message' as a time_t value.\r
+> +/**\r
+> + * Get the date of 'message' as a time_t value.\r
+> *\r
+> * For the original textual representation of the Date header from the\r
+> * message call notmuch_message_get_header() with a header value of\r
+> - * "date". */\r
+> + * "date".\r
+> + */\r
+> time_t\r
+> notmuch_message_get_date (notmuch_message_t *message);\r
+> \r
+> -/* Get the value of the specified header from 'message' as a UTF-8 string.\r
+> +/**\r
+> + * Get the value of the specified header from 'message' as a UTF-8 string.\r
+> *\r
+> * Common headers are stored in the database when the message is\r
+> * indexed and will be returned from the database. Other headers will\r
+> @@ -1083,7 +1209,8 @@ notmuch_message_get_date (notmuch_message_t *message);\r
+> const char *\r
+> notmuch_message_get_header (notmuch_message_t *message, const char *header);\r
+> \r
+> -/* Get the tags for 'message', returning a notmuch_tags_t object which\r
+> +/**\r
+> + * Get the tags for 'message', returning a notmuch_tags_t object which\r
+> * can be used to iterate over all tags.\r
+> *\r
+> * The tags object is owned by the message and as such, will only be\r
+> @@ -1116,10 +1243,13 @@ notmuch_message_get_header (notmuch_message_t *message, const char *header);\r
+> notmuch_tags_t *\r
+> notmuch_message_get_tags (notmuch_message_t *message);\r
+> \r
+> -/* The longest possible tag value. */\r
+> +/**\r
+> + * The longest possible tag value.\r
+> + */\r
+> #define NOTMUCH_TAG_MAX 200\r
+> \r
+> -/* Add a tag to the given message.\r
+> +/**\r
+> + * Add a tag to the given message.\r
+> *\r
+> * Return value:\r
+> *\r
+> @@ -1136,7 +1266,8 @@ notmuch_message_get_tags (notmuch_message_t *message);\r
+> notmuch_status_t\r
+> notmuch_message_add_tag (notmuch_message_t *message, const char *tag);\r
+> \r
+> -/* Remove a tag from the given message.\r
+> +/**\r
+> + * Remove a tag from the given message.\r
+> *\r
+> * Return value:\r
+> *\r
+> @@ -1153,7 +1284,8 @@ notmuch_message_add_tag (notmuch_message_t *message, const char *tag);\r
+> notmuch_status_t\r
+> notmuch_message_remove_tag (notmuch_message_t *message, const char *tag);\r
+> \r
+> -/* Remove all tags from the given message.\r
+> +/**\r
+> + * Remove all tags from the given message.\r
+> *\r
+> * See notmuch_message_freeze for an example showing how to safely\r
+> * replace tag values.\r
+> @@ -1164,7 +1296,8 @@ notmuch_message_remove_tag (notmuch_message_t *message, const char *tag);\r
+> notmuch_status_t\r
+> notmuch_message_remove_all_tags (notmuch_message_t *message);\r
+> \r
+> -/* Add/remove tags according to maildir flags in the message filename(s)\r
+> +/**\r
+> + * Add/remove tags according to maildir flags in the message filename(s).\r
+> *\r
+> * This function examines the filenames of 'message' for maildir\r
+> * flags, and adds or removes tags on 'message' as follows when these\r
+> @@ -1198,7 +1331,8 @@ notmuch_message_remove_all_tags (notmuch_message_t *message);\r
+> notmuch_status_t\r
+> notmuch_message_maildir_flags_to_tags (notmuch_message_t *message);\r
+> \r
+> -/* Rename message filename(s) to encode tags as maildir flags\r
+> +/**\r
+> + * Rename message filename(s) to encode tags as maildir flags.\r
+> *\r
+> * Specifically, for each filename corresponding to this message:\r
+> *\r
+> @@ -1234,7 +1368,8 @@ notmuch_message_maildir_flags_to_tags (notmuch_message_t *message);\r
+> notmuch_status_t\r
+> notmuch_message_tags_to_maildir_flags (notmuch_message_t *message);\r
+> \r
+> -/* Freeze the current state of 'message' within the database.\r
+> +/**\r
+> + * Freeze the current state of 'message' within the database.\r
+> *\r
+> * This means that changes to the message state, (via\r
+> * notmuch_message_add_tag, notmuch_message_remove_tag, and\r
+> @@ -1277,7 +1412,8 @@ notmuch_message_tags_to_maildir_flags (notmuch_message_t *message);\r
+> notmuch_status_t\r
+> notmuch_message_freeze (notmuch_message_t *message);\r
+> \r
+> -/* Thaw the current 'message', synchronizing any changes that may have\r
+> +/**\r
+> + * Thaw the current 'message', synchronizing any changes that may have\r
+> * occurred while 'message' was frozen into the notmuch database.\r
+> *\r
+> * See notmuch_message_freeze for an example of how to use this\r
+> @@ -1300,7 +1436,8 @@ notmuch_message_freeze (notmuch_message_t *message);\r
+> notmuch_status_t\r
+> notmuch_message_thaw (notmuch_message_t *message);\r
+> \r
+> -/* Destroy a notmuch_message_t object.\r
+> +/**\r
+> + * Destroy a notmuch_message_t object.\r
+> *\r
+> * It can be useful to call this function in the case of a single\r
+> * query object with many messages in the result, (such as iterating\r
+> @@ -1311,7 +1448,8 @@ notmuch_message_thaw (notmuch_message_t *message);\r
+> void\r
+> notmuch_message_destroy (notmuch_message_t *message);\r
+> \r
+> -/* Is the given 'tags' iterator pointing at a valid tag.\r
+> +/**\r
+> + * Is the given 'tags' iterator pointing at a valid tag.\r
+> *\r
+> * When this function returns TRUE, notmuch_tags_get will return a\r
+> * valid string. Whereas when this function returns FALSE,\r
+> @@ -1323,7 +1461,8 @@ notmuch_message_destroy (notmuch_message_t *message);\r
+> notmuch_bool_t\r
+> notmuch_tags_valid (notmuch_tags_t *tags);\r
+> \r
+> -/* Get the current tag from 'tags' as a string.\r
+> +/**\r
+> + * Get the current tag from 'tags' as a string.\r
+> *\r
+> * Note: The returned string belongs to 'tags' and has a lifetime\r
+> * identical to it (and the query to which it ultimately belongs).\r
+> @@ -1334,7 +1473,8 @@ notmuch_tags_valid (notmuch_tags_t *tags);\r
+> const char *\r
+> notmuch_tags_get (notmuch_tags_t *tags);\r
+> \r
+> -/* Move the 'tags' iterator to the next tag.\r
+> +/**\r
+> + * Move the 'tags' iterator to the next tag.\r
+> *\r
+> * If 'tags' is already pointing at the last tag then the iterator\r
+> * will be moved to a point just beyond that last tag, (where\r
+> @@ -1347,7 +1487,8 @@ notmuch_tags_get (notmuch_tags_t *tags);\r
+> void\r
+> notmuch_tags_move_to_next (notmuch_tags_t *tags);\r
+> \r
+> -/* Destroy a notmuch_tags_t object.\r
+> +/**\r
+> + * Destroy a notmuch_tags_t object.\r
+> *\r
+> * It's not strictly necessary to call this function. All memory from\r
+> * the notmuch_tags_t object will be reclaimed when the containing\r
+> @@ -1356,7 +1497,8 @@ notmuch_tags_move_to_next (notmuch_tags_t *tags);\r
+> void\r
+> notmuch_tags_destroy (notmuch_tags_t *tags);\r
+> \r
+> -/* Store an mtime within the database for 'directory'.\r
+> +/**\r
+> + * Store an mtime within the database for 'directory'.\r
+> *\r
+> * The 'directory' should be an object retrieved from the database\r
+> * with notmuch_database_get_directory for a particular path.\r
+> @@ -1396,35 +1538,44 @@ notmuch_status_t\r
+> notmuch_directory_set_mtime (notmuch_directory_t *directory,\r
+> time_t mtime);\r
+> \r
+> -/* Get the mtime of a directory, (as previously stored with\r
+> +/**\r
+> + * Get the mtime of a directory, (as previously stored with\r
+> * notmuch_directory_set_mtime).\r
+> *\r
+> * Returns 0 if no mtime has previously been stored for this\r
+> - * directory.*/\r
+> + * directory.\r
+> + */\r
+> time_t\r
+> notmuch_directory_get_mtime (notmuch_directory_t *directory);\r
+> \r
+> -/* Get a notmuch_filenames_t iterator listing all the filenames of\r
+> +/**\r
+> + * Get a notmuch_filenames_t iterator listing all the filenames of\r
+> * messages in the database within the given directory.\r
+> *\r
+> * The returned filenames will be the basename-entries only (not\r
+> - * complete paths). */\r
+> + * complete paths).\r
+> + */\r
+> notmuch_filenames_t *\r
+> notmuch_directory_get_child_files (notmuch_directory_t *directory);\r
+> \r
+> -/* Get a notmuch_filenams_t iterator listing all the filenames of\r
+> +/**\r
+> + * Get a notmuch_filenams_t iterator listing all the filenames of\r
+> * sub-directories in the database within the given directory.\r
+> *\r
+> * The returned filenames will be the basename-entries only (not\r
+> - * complete paths). */\r
+> + * complete paths).\r
+> + */\r
+> notmuch_filenames_t *\r
+> notmuch_directory_get_child_directories (notmuch_directory_t *directory);\r
+> \r
+> -/* Destroy a notmuch_directory_t object. */\r
+> +/**\r
+> + * Destroy a notmuch_directory_t object.\r
+> + */\r
+> void\r
+> notmuch_directory_destroy (notmuch_directory_t *directory);\r
+> \r
+> -/* Is the given 'filenames' iterator pointing at a valid filename.\r
+> +/**\r
+> + * Is the given 'filenames' iterator pointing at a valid filename.\r
+> *\r
+> * When this function returns TRUE, notmuch_filenames_get will return\r
+> * a valid string. Whereas when this function returns FALSE,\r
+> @@ -1436,7 +1587,8 @@ notmuch_directory_destroy (notmuch_directory_t *directory);\r
+> notmuch_bool_t\r
+> notmuch_filenames_valid (notmuch_filenames_t *filenames);\r
+> \r
+> -/* Get the current filename from 'filenames' as a string.\r
+> +/**\r
+> + * Get the current filename from 'filenames' as a string.\r
+> *\r
+> * Note: The returned string belongs to 'filenames' and has a lifetime\r
+> * identical to it (and the directory to which it ultimately belongs).\r
+> @@ -1447,7 +1599,8 @@ notmuch_filenames_valid (notmuch_filenames_t *filenames);\r
+> const char *\r
+> notmuch_filenames_get (notmuch_filenames_t *filenames);\r
+> \r
+> -/* Move the 'filenames' iterator to the next filename.\r
+> +/**\r
+> + * Move the 'filenames' iterator to the next filename.\r
+> *\r
+> * If 'filenames' is already pointing at the last filename then the\r
+> * iterator will be moved to a point just beyond that last filename,\r
+> @@ -1460,7 +1613,8 @@ notmuch_filenames_get (notmuch_filenames_t *filenames);\r
+> void\r
+> notmuch_filenames_move_to_next (notmuch_filenames_t *filenames);\r
+> \r
+> -/* Destroy a notmuch_filenames_t object.\r
+> +/**\r
+> + * Destroy a notmuch_filenames_t object.\r
+> *\r
+> * It's not strictly necessary to call this function. All memory from\r
+> * the notmuch_filenames_t object will be reclaimed when the\r
+> @@ -1472,6 +1626,8 @@ notmuch_filenames_move_to_next (notmuch_filenames_t *filenames);\r
+> void\r
+> notmuch_filenames_destroy (notmuch_filenames_t *filenames);\r
+> \r
+> +/* @} */\r
+> +\r
+> NOTMUCH_END_DECLS\r
+> \r
+> #endif\r
+> -- \r
+> 1.8.4.2\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r