Changeset 194
- Timestamp:
- 01/15/03 16:17:28 (6 years ago)
- Files:
-
- trunk/configure.ac (modified) (2 diffs)
- trunk/src/message.c (modified) (4 diffs)
- trunk/src/message.h (modified) (3 diffs)
- trunk/src/requests.c (modified) (3 diffs)
- trunk/src/requests.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/configure.ac
r190 r194 63 63 AC_ARG_ENABLE([debug],AC_HELP_STRING([--disable-debug],[Disable debugging code])) 64 64 65 AC_ARG_ENABLE([remote-userlist],AC_HELP_STRING([--enable-remote-userlist],[Enable support for contact lists on server])) 66 65 67 AC_ARG_WITH([efence],AC_HELP_STRING([--with-efence],[Link against ElectricFence library])) 66 68 … … 69 71 fi 70 72 71 if test "x$with_efence" == "xyes" ; then 73 if test "x$enable_remote_userlist" = "xyes" ; then 74 AC_DEFINE(REMOTE_USERLIST,1,[Define to enable remote userlist support]) 75 fi 76 77 if test "x$with_efence" = "xyes" ; then 72 78 AC_CHECK_LIB([efence], [malloc]) 73 79 fi trunk/src/message.c
r183 r194 1 /* $Id: message.c,v 1.1 5 2003/01/15 08:04:56jajcus Exp $ */1 /* $Id: message.c,v 1.16 2003/01/15 15:17:28 jajcus Exp $ */ 2 2 3 3 /* … … 48 48 49 49 MsgCommand msg_commands[]={ 50 #ifdef REMOTE_USERLIST 50 51 {"get roster","gr",message_get_roster,1}, 51 52 {"put roster","pr",message_put_roster,1}, 53 #endif 52 54 {"friends only","fo",message_friends_only,1}, 53 55 {"invisible","iv",message_invisible,1}, … … 109 111 } 110 112 111 113 #ifdef REMOTE_USERLIST 112 114 void message_get_roster(struct stream_s *stream,const char *from, const char *to, 113 115 const char *args, xmlnode msg){ … … 320 322 r->gghttp=NULL; 321 323 } 324 #endif /* REMOTE USERLIST */ 322 325 323 326 void message_friends_only(struct stream_s *stream,const char *from, const char *to, trunk/src/message.h
r181 r194 1 /* $Id: message.h,v 1. 3 2003/01/14 14:25:24jajcus Exp $ */1 /* $Id: message.h,v 1.4 2003/01/15 15:17:28 jajcus Exp $ */ 2 2 3 3 /* … … 33 33 int jabber_message(struct stream_s *stream,xmlnode tag); 34 34 35 #ifdef REMOTE_USERLIST 35 36 struct request_s; 36 37 … … 39 40 void put_roster_error(struct request_s *r); 40 41 void put_roster_done(struct request_s *r); 41 42 #endif 42 43 43 44 #endif trunk/src/requests.c
r183 r194 1 /* $Id: requests.c,v 1.1 5 2003/01/15 08:04:56jajcus Exp $ */1 /* $Id: requests.c,v 1.16 2003/01/15 15:17:28 jajcus Exp $ */ 2 2 3 3 /* … … 61 61 remove_request(r); 62 62 return FALSE; 63 #ifdef REMOTE_USERLIST 63 64 case RT_USERLIST_GET: 64 65 t=gg_userlist_get_watch_fd(r->gghttp); … … 77 78 remove_request(r); 78 79 return FALSE; 80 #endif /* REMOTE USERLIST */ 79 81 default: 80 82 g_warning("Unknow gg_http session type: %i",r->gghttp->type); trunk/src/requests.h
r182 r194 1 /* $Id: requests.h,v 1. 8 2003/01/15 07:27:27jajcus Exp $ */1 /* $Id: requests.h,v 1.9 2003/01/15 15:17:28 jajcus Exp $ */ 2 2 3 3 /* … … 30 30 RT_VCARD, 31 31 RT_CHANGE, 32 #ifdef REMOTE_USERLIST 32 33 RT_USERLIST_GET, 33 RT_USERLIST_PUT 34 RT_USERLIST_PUT, 35 #endif 34 36 }RequestType; 35 37
