Mercurial > pidgin.yaz
comparison src/socket.c @ 10320:61852117568f
[gaim-migrate @ 11527]
A little code cleanup here and there. And I removed gaim_setup() from
gtkmain.c and put it in gtksound.c
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 05 Dec 2004 21:05:52 +0000 |
parents | fa6395637e2c |
children | 8bda65b88e49 |
comparison
equal
deleted
inserted
replaced
10319:32e7baa81e03 | 10320:61852117568f |
---|---|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 * | 21 * |
22 */ | 22 */ |
23 | 23 |
24 /* Somewhat inspired by XMMS*/ | 24 /* Somewhat inspired by XMMS*/ |
25 | 25 |
26 /* This provides code for connecting to a Gaim socket and communicating with | 26 /* This provides code for connecting to a Gaim socket and communicating with |
27 * it. It will eventually be made a library once the core and ui are split. */ | 27 * it. It will eventually be made a library once the core and ui are split. */ |
28 | 28 |
29 #include <sys/types.h> | 29 #include <sys/types.h> |
30 #include <sys/socket.h> | 30 #include <sys/socket.h> |
31 #include <sys/un.h> | 31 #include <sys/un.h> |
32 #include <unistd.h> | 32 #include <unistd.h> |
33 #include "gaim.h" | |
34 #include "gaim-socket.h" | 33 #include "gaim-socket.h" |
35 | 34 |
36 void cui_send_packet (int fd, struct gaim_cui_packet *p) { | 35 void cui_send_packet (int fd, struct gaim_cui_packet *p) { |
37 int len = sizeof(p->type) + sizeof(p->subtype) + sizeof(p->length) + p->length; | 36 int len = sizeof(p->type) + sizeof(p->subtype) + sizeof(p->length) + p->length; |
38 char *pack = g_malloc(len); | 37 char *pack = g_malloc(len); |