[dovecot-cvs] dovecot/src/login auth-connection.c,1.20,1.21 auth-connection.h,1.8,1.9 common.h,1.5,1.6 master.c,1.11,1.12 master.h,1.6,1.7

cras at procontrol.fi cras at procontrol.fi
Sat Jan 11 21:55:59 EET 2003


Update of /home/cvs/dovecot/src/login
In directory danu:/tmp/cvs-serv27659/login

Modified Files:
	auth-connection.c auth-connection.h common.h master.c master.h 
Log Message:
Naming change for function typedefs.



Index: auth-connection.c
===================================================================
RCS file: /home/cvs/dovecot/src/login/auth-connection.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- auth-connection.c	11 Jan 2003 15:29:47 -0000	1.20
+++ auth-connection.c	11 Jan 2003 19:55:57 -0000	1.21
@@ -282,7 +282,7 @@
 	i_stream_skip(conn->input, conn->in_reply.data_size);
 }
 
-int auth_init_request(enum auth_mech mech, AuthCallback callback,
+int auth_init_request(enum auth_mech mech, auth_callback_t callback,
 		      void *context, const char **error)
 {
 	struct auth_connection *conn;

Index: auth-connection.h
===================================================================
RCS file: /home/cvs/dovecot/src/login/auth-connection.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- auth-connection.h	9 Jan 2003 12:19:07 -0000	1.8
+++ auth-connection.h	11 Jan 2003 19:55:57 -0000	1.9
@@ -5,11 +5,13 @@
 
 /* If result == AUTH_RESULT_INTERNAL_FAILURE, request may be NULL and
    reply_data_size contains the error message. */
-typedef void (*AuthCallback)(struct auth_request *request,
-			     unsigned int auth_process, enum auth_result result,
-			     const unsigned char *reply_data,
-			     size_t reply_data_size, const char *virtual_user,
-			     void *context);
+typedef void (*auth_callback_t)(struct auth_request *request,
+				unsigned int auth_process,
+				enum auth_result result,
+				const unsigned char *reply_data,
+				size_t reply_data_size,
+				const char *virtual_user,
+				void *context);
 
 struct auth_request {
         enum auth_mech mech;
@@ -18,7 +20,7 @@
 	unsigned int id;
 	unsigned char cookie[AUTH_COOKIE_SIZE];
 
-	AuthCallback callback;
+	auth_callback_t callback;
 	void *context;
 
 	unsigned int init_sent:1;
@@ -26,7 +28,7 @@
 
 extern enum auth_mech available_auth_mechs;
 
-int auth_init_request(enum auth_mech mech, AuthCallback callback,
+int auth_init_request(enum auth_mech mech, auth_callback_t callback,
 		      void *context, const char **error);
 
 void auth_continue_request(struct auth_request *request,

Index: common.h
===================================================================
RCS file: /home/cvs/dovecot/src/login/common.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- common.h	19 Dec 2002 23:56:24 -0000	1.5
+++ common.h	11 Jan 2003 19:55:57 -0000	1.6
@@ -4,9 +4,6 @@
 #include "lib.h"
 #include "../auth/auth-interface.h"
 
-typedef struct _Client Client;
-typedef struct _AuthRequest AuthRequest;
-
 extern int disable_plaintext_auth, process_per_connection, verbose_proctitle;
 extern unsigned int max_logging_users;
 extern unsigned int login_process_uid;

Index: master.c
===================================================================
RCS file: /home/cvs/dovecot/src/login/master.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- master.c	8 Jan 2003 21:13:05 -0000	1.11
+++ master.c	11 Jan 2003 19:55:57 -0000	1.12
@@ -13,7 +13,7 @@
 	struct waiting_request *next;
 
 	unsigned int id;
-	MasterCallback callback;
+	master_callback_t callback;
 	void *context;
 };
 
@@ -23,7 +23,7 @@
 static unsigned int master_pos;
 static char master_buf[sizeof(struct master_reply)];
 
-static void push_request(unsigned int id, MasterCallback callback,
+static void push_request(unsigned int id, master_callback_t callback,
 			 void *context)
 {
 	struct waiting_request *req;
@@ -66,7 +66,7 @@
 			 const char *login_tag,
 			 unsigned char cookie[AUTH_COOKIE_SIZE],
 			 struct ip_addr *ip,
-			 MasterCallback callback, void *context)
+			 master_callback_t callback, void *context)
 {
 	struct master_request req;
 

Index: master.h
===================================================================
RCS file: /home/cvs/dovecot/src/login/master.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- master.h	5 Jan 2003 13:09:53 -0000	1.6
+++ master.h	11 Jan 2003 19:55:57 -0000	1.7
@@ -3,14 +3,15 @@
 
 #include "../master/master-interface.h"
 
-typedef void (*MasterCallback)(enum master_reply_result result, void *context);
+typedef void (*master_callback_t)(enum master_reply_result result,
+				  void *context);
 
 /* Request IMAP process for given cookie. */
 void master_request_imap(int fd, unsigned int auth_process,
 			 const char *login_tag,
 			 unsigned char cookie[AUTH_COOKIE_SIZE],
 			 struct ip_addr *ip,
-			 MasterCallback callback, void *context);
+			 master_callback_t callback, void *context);
 
 /* Notify master that we're not listening for new connections anymore. */
 void master_notify_finished(void);




More information about the dovecot-cvs mailing list