Mercurial > pidgin.yaz
comparison plugins/raw.c @ 6822:7dba3e17cb21
[gaim-migrate @ 7366]
Added plugin IPC. Its use is shown in plugins/ipc-test-server.c and
plugins/ipc-test-client.c.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sat, 13 Sep 2003 09:31:03 +0000 |
| parents | ed89cd0c675e |
| children | d7fd01f7bdcb |
comparison
equal
deleted
inserted
replaced
| 6821:636b5215552e | 6822:7dba3e17cb21 |
|---|---|
| 39 | 39 |
| 40 gc = gaim_account_get_connection(account); | 40 gc = gaim_account_get_connection(account); |
| 41 | 41 |
| 42 txt = gtk_entry_get_text(entry); | 42 txt = gtk_entry_get_text(entry); |
| 43 | 43 |
| 44 gaim_debug_misc("raw", "prpl num = %d\n", gaim_account_get_protocol(account)); | |
| 44 switch (gaim_account_get_protocol(account)) { | 45 switch (gaim_account_get_protocol(account)) { |
| 45 case GAIM_PROTO_TOC: | 46 case GAIM_PROTO_TOC: |
| 46 { | 47 { |
| 47 int *a = (int *)gc->proto_data; | 48 int *a = (int *)gc->proto_data; |
| 48 unsigned short seqno = htons(a[1]++ & 0xffff); | 49 unsigned short seqno = htons(a[1]++ & 0xffff); |
| 74 case GAIM_PROTO_JABBER: | 75 case GAIM_PROTO_JABBER: |
| 75 jab_send_raw(*(jconn *)gc->proto_data, txt); | 76 jab_send_raw(*(jconn *)gc->proto_data, txt); |
| 76 break; | 77 break; |
| 77 | 78 |
| 78 default: | 79 default: |
| 80 gaim_debug_error("raw", "Unknown protocol ID %d\n", | |
| 81 gaim_account_get_protocol(account)); | |
| 79 break; | 82 break; |
| 80 } | 83 } |
| 81 | 84 |
| 82 gtk_entry_set_text(entry, ""); | 85 gtk_entry_set_text(entry, ""); |
| 83 } | 86 } |
