Mercurial > pidgin
comparison src/protocols/toc/toc.c @ 6867:1c4e4c725e0d
[gaim-migrate @ 7413]
I #if 0'ed all gtk code in src/protocols/toc/toc.c
I don't know if any of it worked or not... probably not.
IMO, if toc wants to do rvous, it can go through the core like everyone else.
Now I'm going to go watch people make brownies.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 17 Sep 2003 01:50:15 +0000 |
| parents | 4146b836ba0a |
| children | 083d1e4a9c78 |
comparison
equal
deleted
inserted
replaced
| 6866:2427a829fdfa | 6867:1c4e4c725e0d |
|---|---|
| 31 #include "request.h" | 31 #include "request.h" |
| 32 #include "util.h" | 32 #include "util.h" |
| 33 #include "html.h" | 33 #include "html.h" |
| 34 | 34 |
| 35 /* XXX */ | 35 /* XXX */ |
| 36 #include "gtkinternal.h" | |
| 37 #include "gaim.h" | 36 #include "gaim.h" |
| 38 #include "ui.h" | |
| 39 #include "gtkutils.h" | |
| 40 | 37 |
| 41 static GaimPlugin *my_protocol = NULL; | 38 static GaimPlugin *my_protocol = NULL; |
| 42 | 39 |
| 43 #define REVISION "penguin" | 40 #define REVISION "penguin" |
| 44 | 41 |
| 124 | 121 |
| 125 #define TOC_CONNECT_STEPS 4 | 122 #define TOC_CONNECT_STEPS 4 |
| 126 | 123 |
| 127 static void toc_login_callback(gpointer, gint, GaimInputCondition); | 124 static void toc_login_callback(gpointer, gint, GaimInputCondition); |
| 128 static void toc_callback(gpointer, gint, GaimInputCondition); | 125 static void toc_callback(gpointer, gint, GaimInputCondition); |
| 129 static void accept_file_dialog(struct ft_request *); | |
| 130 | 126 |
| 131 /* The following were added for win32 port - Herman */ | 127 /* The following were added for win32 port - Herman */ |
| 132 | 128 |
| 133 int toc_write(int fd, const void *buffer, int len) | 129 int toc_write(int fd, const void *buffer, int len) |
| 134 { | 130 { |
| 916 "sent to it, and may kick you off if you send a" | 912 "sent to it, and may kick you off if you send a" |
| 917 " message. Gaim will prevent anything from " | 913 " message. Gaim will prevent anything from " |
| 918 "going through. This is only temporary, please " | 914 "going through. This is only temporary, please " |
| 919 "be patient.")); | 915 "be patient.")); |
| 920 } else if (!g_ascii_strcasecmp(c, "RVOUS_PROPOSE")) { | 916 } else if (!g_ascii_strcasecmp(c, "RVOUS_PROPOSE")) { |
| 917 #if 0 | |
| 921 char *user, *uuid, *cookie; | 918 char *user, *uuid, *cookie; |
| 922 int seq; | 919 int seq; |
| 923 char *rip, *pip, *vip, *trillian = NULL; | 920 char *rip, *pip, *vip, *trillian = NULL; |
| 924 int port; | 921 int port; |
| 925 | 922 |
| 1029 | 1026 |
| 1030 accept_file_dialog(ft); | 1027 accept_file_dialog(ft); |
| 1031 } else if (!strcmp(uuid, VOICE_UID)) { | 1028 } else if (!strcmp(uuid, VOICE_UID)) { |
| 1032 /* oh goody. voice over ip. fun stuff. */ | 1029 /* oh goody. voice over ip. fun stuff. */ |
| 1033 } else if (!strcmp(uuid, B_ICON_UID)) { | 1030 } else if (!strcmp(uuid, B_ICON_UID)) { |
| 1034 /* | |
| 1035 int unk[4], i; | 1031 int unk[4], i; |
| 1036 char *messages[4]; | 1032 char *messages[4]; |
| 1037 struct buddy_icon *icon; | 1033 struct buddy_icon *icon; |
| 1038 | 1034 |
| 1039 for (i = 0; i < 4; i++) { | 1035 for (i = 0; i < 4; i++) { |
| 1047 gaim_debug(GAIM_DEBUG_MISC, "toc", | 1043 gaim_debug(GAIM_DEBUG_MISC, "toc", |
| 1048 "received icon of length %d\n", icon->len); | 1044 "received icon of length %d\n", icon->len); |
| 1049 g_free(icon); | 1045 g_free(icon); |
| 1050 for (i--; i >= 0; i--) | 1046 for (i--; i >= 0; i--) |
| 1051 g_free(messages[i]); | 1047 g_free(messages[i]); |
| 1052 */ | |
| 1053 } else if (!strcmp(uuid, IMAGE_UID)) { | 1048 } else if (!strcmp(uuid, IMAGE_UID)) { |
| 1054 /* aka Direct IM */ | 1049 /* aka Direct IM */ |
| 1055 } else { | 1050 } else { |
| 1056 gaim_debug(GAIM_DEBUG_ERROR, "toc", | 1051 gaim_debug(GAIM_DEBUG_ERROR, "toc", |
| 1057 "Don't know what to do with RVOUS UUID %s\n", uuid); | 1052 "Don't know what to do with RVOUS UUID %s\n", uuid); |
| 1058 /* do we have to do anything here? i think it just times out */ | 1053 /* do we have to do anything here? i think it just times out */ |
| 1059 } | 1054 } |
| 1055 #endif | |
| 1060 } else { | 1056 } else { |
| 1061 gaim_debug(GAIM_DEBUG_ERROR, "toc", | 1057 gaim_debug(GAIM_DEBUG_ERROR, "toc", |
| 1062 "don't know what to do with %s\n", c); | 1058 "don't know what to do with %s\n", c); |
| 1063 } | 1059 } |
| 1064 } | 1060 } |
| 1541 m = g_list_append(m, pam); | 1537 m = g_list_append(m, pam); |
| 1542 | 1538 |
| 1543 return m; | 1539 return m; |
| 1544 } | 1540 } |
| 1545 | 1541 |
| 1542 #if 0 | |
| 1546 /********* | 1543 /********* |
| 1547 * RVOUS ACTIONS | 1544 * RVOUS ACTIONS |
| 1548 ********/ | 1545 ********/ |
| 1549 | 1546 |
| 1550 struct file_header { | 1547 struct file_header { |
| 2076 | 2073 |
| 2077 gaim_request_accept_cancel(ft->gc, NULL, buf, NULL, 0, ft, | 2074 gaim_request_accept_cancel(ft->gc, NULL, buf, NULL, 0, ft, |
| 2078 G_CALLBACK(toc_accept_ft), | 2075 G_CALLBACK(toc_accept_ft), |
| 2079 G_CALLBACK(toc_reject_ft)); | 2076 G_CALLBACK(toc_reject_ft)); |
| 2080 } | 2077 } |
| 2078 #endif | |
| 2081 | 2079 |
| 2082 static GaimPluginProtocolInfo prpl_info = | 2080 static GaimPluginProtocolInfo prpl_info = |
| 2083 { | 2081 { |
| 2084 GAIM_PROTO_TOC, | 2082 GAIM_PROTO_TOC, |
| 2085 OPT_PROTO_CORRECT_TIME, | 2083 OPT_PROTO_CORRECT_TIME, |
