Changeset 273
- Timestamp:
- 04/09/03 09:17:08 (6 years ago)
- Files:
-
- branches/JGGTRANS_B_1_4/src/Makefile.am (modified) (1 diff)
- branches/JGGTRANS_B_1_4/src/gg_versions.c (modified) (1 diff, 2 props)
- branches/JGGTRANS_B_1_4/src/gg_versions.h (modified) (1 diff, 2 props)
- branches/JGGTRANS_B_1_4/src/iq.c (modified) (3 diffs)
- branches/JGGTRANS_B_1_4/src/search.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/JGGTRANS_B_1_4/src/Makefile.am
r198 r273 37 37 stream.h \ 38 38 users.c \ 39 users.h 39 users.h \ 40 gg_versions.c \ 41 gg_versions.h 40 42 41 43 check_PROGRAMS = encodingtest branches/JGGTRANS_B_1_4/src/gg_versions.c
- Property svn:eol-style deleted
- Property svn:keywords deleted
r245 r273 1 /* $Id: gg_versions.c,v 1.1 2003/03/25 07:43:45jajcus Exp $ */1 /* $Id: gg_versions.c,v 1.1.2.1 2003/04/09 07:17:08 jajcus Exp $ */ 2 2 3 3 /* branches/JGGTRANS_B_1_4/src/gg_versions.h
- Property svn:eol-style deleted
- Property svn:keywords deleted
r245 r273 1 /* $Id: gg_versions.h,v 1.1 2003/03/25 07:43:45jajcus Exp $ */1 /* $Id: gg_versions.h,v 1.1.2.1 2003/04/09 07:17:08 jajcus Exp $ */ 2 2 3 3 /* branches/JGGTRANS_B_1_4/src/iq.c
r238 r273 1 /* $Id: iq.c,v 1.34 2003/03/24 13:51:35jajcus Exp $ */1 /* $Id: iq.c,v 1.34.2.1 2003/04/09 07:17:08 jajcus Exp $ */ 2 2 3 3 /* … … 28 28 #include "debug.h" 29 29 #include "conf.h" 30 #include "gg_versions.h" 30 31 #include <sys/utsname.h> 31 32 … … 62 63 {NULL,NULL,NULL,NULL} 63 64 }; 64 65 /* Gadu-Gadu protocol=>version mapping (aproximations) */66 char *gg_version[]={67 NULL,NULL,NULL,NULL,NULL,NULL,NULL, /* 0x00 - 0x06 */68 NULL,NULL,NULL, /* 0x07 - 0x09 */69 "(WPKontakt)", /* 0x0a */70 "4.0.2x", /* 0x0b */71 NULL,NULL,NULL, /* 0x0c - 0x0e */72 "4.5.1x", /* 0x0f */73 "4.5.2x", /* 0x10 */74 "4.6.x", /* 0x11 */75 NULL,NULL, /* 0x12 - 0x13 */76 "4.8.x", /* 0x14 */77 "4.8.9", /* 0x15 */78 "4.9.1", /* 0x16 */79 "4.9.2", /* 0x17 */80 "4.9.3/5.0.1", /* 0x18 */81 "5.0.3", /* 0x19 */82 "5.0.4", /* 0x1a */83 "5.0.5", /* 0x1b */84 NULL,NULL,NULL,NULL /* 0x1c - 0x1f */85 };86 #define GG_VERSION_ELEMENTS 0x2087 65 88 66 void jabber_iq_send_error(Stream *s,const char *was_from,const char *was_to,const char *id,int code,char *string){ branches/JGGTRANS_B_1_4/src/search.c
r234 r273 1 /* $Id: search.c,v 1.24 2003/03/17 15:41:58 mmazurExp $ */1 /* $Id: search.c,v 1.24.2.1 2003/04/09 07:17:08 jajcus Exp $ */ 2 2 3 3 /* … … 28 28 #include "encoding.h" 29 29 #include "debug.h" 30 #include "gg_versions.h" 30 31 #include <sys/socket.h> 31 32 #include <netinet/in.h> … … 290 291 struct in_addr a; 291 292 a.s_addr=c->ip; 292 str=g_strdup_printf("Client version: 0x%x\n",c->version); 293 str=g_strdup_printf("Client version: %s (prot.0x%02X)\n", 294 ((c->version & 0xff) < GG_VERSION_ELEMENTS) && gg_version[c->version & 0xff] 295 ? gg_version[c->version & 0xff] 296 : "?.?.?", 297 c->version & 0xff); 293 298 xmlnode_insert_cdata(n,str,-1); 294 299 g_free(str); … … 306 311 } 307 312 308
