| 27 #include "config.h" |
27 #include "config.h" |
| 28 #endif |
28 #endif |
| 29 |
29 |
| 30 #include <gtk/gtk.h> |
30 #include <gtk/gtk.h> |
| 31 #include <string.h> |
31 #include <string.h> |
| |
32 #include <stdlib.h> |
| 32 #include "gaim.h" |
33 #include "gaim.h" |
| 33 #include "prpl.h" |
34 #include "prpl.h" |
| 34 #include "zephyr/zephyr.h" |
35 #include "zephyr/zephyr.h" |
| |
36 |
| |
37 extern Code_t ZGetLocations(ZLocations_t *, int *); |
| |
38 extern Code_t ZSetLocation(char *); |
| |
39 extern Code_t ZUnsetLocation(); |
| 35 |
40 |
| 36 typedef struct _zframe zframe; |
41 typedef struct _zframe zframe; |
| 37 typedef struct _zephyr_triple zephyr_triple; |
42 typedef struct _zephyr_triple zephyr_triple; |
| 38 |
43 |
| 39 /* struct I need for zephyr_to_html */ |
44 /* struct I need for zephyr_to_html */ |
| 111 g_print("z_message_len: %d\n", notice.z_message_len); |
116 g_print("z_message_len: %d\n", notice.z_message_len); |
| 112 g_print("\n"); |
117 g_print("\n"); |
| 113 } |
118 } |
| 114 */ |
119 */ |
| 115 |
120 |
| 116 static zephyr_triple *new_triple(char *c, char *i, char *r) |
121 static zephyr_triple *new_triple(const char *c, const char *i, const char *r) |
| 117 { |
122 { |
| 118 zephyr_triple *zt; |
123 zephyr_triple *zt; |
| 119 zt = g_new0(zephyr_triple, 1); |
124 zt = g_new0(zephyr_triple, 1); |
| 120 zt->class = g_strdup(c); |
125 zt->class = g_strdup(c); |
| 121 zt->instance = g_strdup(i); |
126 zt->instance = g_strdup(i); |
| 870 |
875 |
| 871 static void zephyr_join_chat(struct gaim_connection *gc, int id, char *nm) |
876 static void zephyr_join_chat(struct gaim_connection *gc, int id, char *nm) |
| 872 { |
877 { |
| 873 ZSubscription_t sub; |
878 ZSubscription_t sub; |
| 874 zephyr_triple *zt1, *zt2; |
879 zephyr_triple *zt1, *zt2; |
| 875 char *classname; |
880 const char *classname; |
| 876 char *instname; |
881 const char *instname; |
| 877 char *recip; |
882 const char *recip; |
| 878 char **splitted; |
883 char **splitted; |
| 879 |
884 |
| 880 if (!nm) { |
885 if (!nm) { |
| 881 splitted = NULL; |
886 splitted = NULL; |
| 882 classname = gtk_entry_get_text(GTK_ENTRY(class_entry)); |
887 classname = gtk_entry_get_text(GTK_ENTRY(class_entry)); |