Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv4157/src
Modified Files:
common.h hash.h proto-bahamut.c proto.h
Log Message:
move declarations of AddService(), AddClone(), AddServer(),
DelServer(), and DelUser() to proto.h to indicate they must
be defined by the selected proto-*.c file
Index: common.h
===================================================================
RCS file: /cvsroot/srvx/services/src/common.h,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -r1.72 -r1.73
*** common.h 11 May 2002 02:52:30 -0000 1.72
--- common.h 7 Jul 2002 03:23:37 -0000 1.73
***************
*** 95,101 ****
extern int quit_services;
- struct userNode *AddService(const char *nick, const char *desc);
- struct userNode *AddClone(const char *nick, const char *ident, const char *hostname, const char *desc);
-
int create_socket_client(struct uplinkNode *target);
void close_socket(void);
--- 95,98 ----
Index: hash.h
===================================================================
RCS file: /cvsroot/srvx/services/src/hash.h,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -r1.82 -r1.83
*** hash.h 26 Jun 2002 11:45:28 -0000 1.82
--- hash.h 7 Jul 2002 03:23:37 -0000 1.83
***************
*** 188,194 ****
void reg_server_link_func(server_link_func_t handler);
- struct server* AddServer(struct server* uplink, const char *name, int hops, time_t boot, time_t link, const char *numeric, const char *description);
- void DelServer(struct server* serv, int announce, const char *message);
-
#define IsNickName(x) ( \
(isalpha(*(x)) || \
--- 188,191 ----
***************
*** 201,205 ****
void reg_del_user_func(del_user_func_t handler);
void unreg_del_user_func(del_user_func_t handler);
- void DelUser(struct userNode* user, struct userNode *killer, int announce, const char *why);
void ReintroduceUser(struct userNode* user);
typedef void (*nick_change_func_t)(struct userNode *user, const char *new_nick);
--- 198,201 ----
Index: proto-bahamut.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-bahamut.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** proto-bahamut.c 2 Jul 2002 18:19:41 -0000 1.3
--- proto-bahamut.c 7 Jul 2002 03:23:37 -0000 1.4
***************
*** 21,30 ****
#include "proto-common.c"
- /* Things that MUST be defined in a proto-${dialect}.c file, in
- * addition to the things defined in proto.h:
- * AddServer(), AddService(), AddClone(), DelUser()
- * Most protocols will want an internal AddUser() helper function, too.
- */
-
#define CAPAB_TS3 0x01
#define CAPAB_NOQUIT 0x02
--- 21,24 ----
Index: proto.h
===================================================================
RCS file: /cvsroot/srvx/services/src/proto.h,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -r1.53 -r1.54
*** proto.h 27 Jun 2002 01:28:33 -0000 1.53
--- proto.h 7 Jul 2002 03:23:37 -0000 1.54
***************
*** 160,162 ****
--- 160,170 ----
#define ERR_NOSUCHNICK 401
+ /* stuff originally from other headers that is really protocol-specific */
+ struct userNode *AddService(const char *nick, const char *desc);
+ struct userNode *AddClone(const char *nick, const char *ident, const char *hostname, const char *desc);
+ struct server* AddServer(struct server* uplink, const char *name, int hops, time_t boot, time_t link, const char *numeric, const char *description);
+ void DelServer(struct server* serv, int announce, const char *message);
+ void DelUser(struct userNode* user, struct userNode *killer, int announce, const char *why);
+ /* (most protocols will want to make an AddUser helper function) */
+
#endif /* !defined(PROTO_H) */
|