#ifndef NOTMUCH_CLIENT_H
#define NOTMUCH_CLIENT_H
-
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for getline */
#endif
#include <stdio.h>
+#include "compat.h"
+
#include <gmime/gmime.h>
#include "notmuch.h"
#define STRNCMP_LITERAL(var, literal) \
strncmp ((var), (literal), sizeof (literal) - 1)
-typedef int (*command_function_t) (void *ctx, int argc, char *argv[]);
-
-typedef struct command {
- const char *name;
- command_function_t function;
- const char *summary;
- const char *documentation;
-} command_t;
-
typedef void (*add_files_callback_t) (notmuch_message_t *message);
typedef struct {
int ignore_read_only_directories;
int saw_read_only_directory;
+ int output_is_a_tty;
+ int verbose;
int total_files;
int processed_files;
str[strlen(str)-1] = '\0';
}
+int
+notmuch_count_command (void *ctx, int argc, char *argv[]);
+
int
notmuch_dump_command (void *ctx, int argc, char *argv[]);
int
notmuch_tag_command (void *ctx, int argc, char *argv[]);
+int
+notmuch_search_tags_command (void *ctx, int argc, char *argv[]);
+
const char *
notmuch_time_relative_date (const void *ctx, time_t then);
const char *other_email[],
size_t length);
+notmuch_bool_t
+debugger_is_active (void);
+
#endif