[dovecot-cvs] dovecot/src/imap commands.c, 1.20, 1.21 commands.h, 1.22, 1.23

tss at dovecot.org tss at dovecot.org
Tue Apr 17 18:41:29 EEST 2007


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv30566/imap

Modified Files:
	commands.c commands.h 
Log Message:
Added command flags parameter to command_register()



Index: commands.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/commands.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- commands.c	20 Dec 2006 20:47:02 -0000	1.20
+++ commands.c	17 Apr 2007 15:41:24 -0000	1.21
@@ -58,12 +58,15 @@
 static ARRAY_DEFINE(commands, struct command);
 static bool commands_unsorted;
 
-void command_register(const char *name, command_func_t *func)
+void command_register(const char *name, command_func_t *func,
+		      enum command_flags flags)
 {
 	struct command cmd;
 
+	memset(&cmd, 0, sizeof(cmd));
 	cmd.name = name;
 	cmd.func = func;
+	cmd.flags = flags;
 	array_append(&commands, &cmd, 1);
 
 	commands_unsorted = TRUE;

Index: commands.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/commands.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- commands.h	20 Dec 2006 20:47:02 -0000	1.22
+++ commands.h	17 Apr 2007 15:41:25 -0000	1.23
@@ -28,7 +28,8 @@
 
 /* Register command. Given name parameter must be permanently stored until
    command is unregistered. */
-void command_register(const char *name, command_func_t *func);
+void command_register(const char *name, command_func_t *func,
+		      enum command_flags flags);
 void command_unregister(const char *name);
 
 /* Register array of commands. */



More information about the dovecot-cvs mailing list