return notmuch->path;
}
-notmuch_private_status_t
+static notmuch_private_status_t
find_timestamp_document (notmuch_database_t *notmuch, const char *db_key,
Xapian::Document *doc, unsigned int *doc_id)
{
*
* Otherwise, returns a newly talloced string belonging to 'ctx'.
*/
-const char *
+static const char *
_resolve_message_id_to_thread_id (notmuch_database_t *notmuch,
void *ctx,
const char *message_id)
return 0;
}
-notmuch_terms_t *
+static notmuch_terms_t *
_notmuch_terms_create (void *ctx,
Xapian::Document doc,
const char *prefix_name)
talloc_free (message);
}
-notmuch_bool_t
+static notmuch_bool_t
_notmuch_terms_has_more (notmuch_terms_t *terms)
{
std::string s;
return FALSE;
}
-const char *
+static const char *
_notmuch_terms_get (notmuch_terms_t *terms)
{
return talloc_strdup (terms, (*terms->iterator).c_str () + 1);
}
-void
+static void
_notmuch_terms_advance (notmuch_terms_t *terms)
{
terms->iterator++;
}
-void
+static void
_notmuch_terms_destroy (notmuch_terms_t *terms)
{
talloc_free (terms);
}
/* Compute the number of seconds elapsed from start to end. */
-double
+static double
tv_elapsed (struct timeval start, struct timeval end)
{
return ((end.tv_sec - start.tv_sec) +
(end.tv_usec - start.tv_usec) / 1e6);
}
-void
+static void
print_formatted_seconds (double seconds)
{
int hours;
printf ("%ds", (int) seconds);
}
-void
+static void
add_files_print_progress (add_files_state_t *state)
{
struct timeval tv_now;
* The 'struct stat *st' must point to a structure that has already
* been initialized for 'path' by calling stat().
*/
-notmuch_status_t
+static notmuch_status_t
add_files_recursive (notmuch_database_t *notmuch,
const char *path,
struct stat *st,
* of path. The result is added to *count (which should be
* initialized to zero by the top-level caller before calling
* count_files). */
-void
+static void
count_files (const char *path, int *count)
{
DIR *dir;
closedir (dir);
}
-int
+static int
setup_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch = NULL;
return ret;
}
-int
+static int
new_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch;
return ret;
}
-int
+static int
search_command (int argc, char *argv[])
{
void *local = talloc_new (NULL);
return ret;
}
-int
+static int
show_command (unused (int argc), unused (char *argv[]))
{
fprintf (stderr, "Error: show is not implemented yet.\n");
return 1;
}
-int
+static int
dump_command (int argc, char *argv[])
{
FILE *output;
return ret;
}
-int
+static int
restore_command (int argc, char *argv[])
{
FILE *input;
"\t\tRestore the tags from the given dump file (see 'dump')." }
};
-void
+static void
usage (void)
{
command_t *command;