Mercurial > dovecot > original-hg > dovecot-1.2
view src/imap/commands.h @ 9191:b340ecb24469 HEAD
Fix VPATH build of RQUOTA support.
Some rpcgen derive #include "..." paths from the infile argument.
This will be off for VPATH builds, as the generated rquota_xdr.c
code will look in $(srcdir), but we'll generate the rquota.h file in
$(builddir). Play safe and copy rquota.x to $(builddir) first.
This fixes the build on openSUSE 11.1.
author | Matthias Andree <matthias.andree@gmx.de> |
---|---|
date | Tue, 07 Jul 2009 21:01:36 +0200 |
parents | ef7c0c3b1976 |
children | 3efdbaab2960 |
line wrap: on
line source
#ifndef COMMANDS_H #define COMMANDS_H struct client_command_context; #include "mail-storage.h" #include "imap-parser.h" #include "imap-sync.h" #include "commands-util.h" typedef bool command_func_t(struct client_command_context *cmd); enum command_flags { /* Command uses sequences as its input parameters */ COMMAND_FLAG_USES_SEQS = 0x01, /* Command may reply with EXPUNGE, causing sequences to break */ COMMAND_FLAG_BREAKS_SEQS = 0x02, /* Command changes the mailbox */ COMMAND_FLAG_BREAKS_MAILBOX = 0x04 | COMMAND_FLAG_BREAKS_SEQS, /* Command uses selected mailbox */ COMMAND_FLAG_USES_MAILBOX = COMMAND_FLAG_BREAKS_MAILBOX | COMMAND_FLAG_USES_SEQS, /* Command requires mailbox syncing before it can do its job. */ COMMAND_FLAG_REQUIRES_SYNC = 0x08 }; struct command { const char *name; command_func_t *func; enum command_flags flags; }; ARRAY_DEFINE_TYPE(command, struct command); extern ARRAY_TYPE(command) imap_commands; /* Register command. Given name parameter must be permanently stored until command is unregistered. */ void command_register(const char *name, command_func_t *func, enum command_flags flags); void command_unregister(const char *name); /* Register array of commands. */ void command_register_array(const struct command *cmdarr, unsigned int count); void command_unregister_array(const struct command *cmdarr, unsigned int count); struct command *command_find(const char *name); void commands_init(void); void commands_deinit(void); /* IMAP4rev1 commands: */ /* Non-Authenticated State */ bool cmd_logout(struct client_command_context *cmd); bool cmd_capability(struct client_command_context *cmd); bool cmd_noop(struct client_command_context *cmd); /* Authenticated State */ bool cmd_select(struct client_command_context *cmd); bool cmd_examine(struct client_command_context *cmd); bool cmd_create(struct client_command_context *cmd); bool cmd_delete(struct client_command_context *cmd); bool cmd_rename(struct client_command_context *cmd); bool cmd_subscribe(struct client_command_context *cmd); bool cmd_unsubscribe(struct client_command_context *cmd); bool cmd_list(struct client_command_context *cmd); bool cmd_lsub(struct client_command_context *cmd); bool cmd_status(struct client_command_context *cmd); bool cmd_append(struct client_command_context *cmd); /* Selected state */ bool cmd_check(struct client_command_context *cmd); bool cmd_close(struct client_command_context *cmd); bool cmd_expunge(struct client_command_context *cmd); bool cmd_search(struct client_command_context *cmd); bool cmd_fetch(struct client_command_context *cmd); bool cmd_store(struct client_command_context *cmd); bool cmd_copy(struct client_command_context *cmd); bool cmd_uid(struct client_command_context *cmd); /* IMAP extensions: */ bool cmd_cancelupdate(struct client_command_context *cmd); bool cmd_enable(struct client_command_context *cmd); bool cmd_id(struct client_command_context *cmd); bool cmd_idle(struct client_command_context *cmd); bool cmd_namespace(struct client_command_context *cmd); bool cmd_sort(struct client_command_context *cmd); bool cmd_thread(struct client_command_context *cmd); bool cmd_uid_expunge(struct client_command_context *cmd); bool cmd_unselect(struct client_command_context *cmd); bool cmd_x_cancel(struct client_command_context *cmd); /* private: */ bool cmd_list_full(struct client_command_context *cmd, bool lsub); bool cmd_select_full(struct client_command_context *cmd, bool readonly); bool cmd_subscribe_full(struct client_command_context *cmd, bool subscribe); #endif