Mercurial > pidgin
view plugins/icq/socketmanager.h @ 1911:db3104dda736
[gaim-migrate @ 1921]
Mike Heffner's redesigned UI.
I changed around a lot of things from his patch, not because they weren't good or needed or anything like that; most of the changes I made just made the patch smaller. I moved functions back to where they originally where and renamed them back to what they originally were. Granted the names aren't as... good as the changes Mike made, but eh, it made my life a lot easier when I could see the meat of the changes without all the cosmetic details.
The only thing I really changed about his patch was I made the list BROWSE instead of SINGLE so that there wouldn't be need for a deselect callback. Oh yeah, and update_show_plugins is called from different places (so that plugins can call load_plugin and have the window update properly).
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 29 May 2001 09:46:05 +0000 |
parents | e2f256502345 |
children | 8ed70631ed15 |
line wrap: on
line source
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ #ifndef _SOCKETMANAGER_H #define _SOCKETMANAGER_H #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <sys/types.h> #include <sys/socket.h> #include "icq.h" #include "list.h" typedef struct icq_Socket_s icq_Socket; typedef void (*icq_SocketHandler)(void *data); struct icq_Socket_s { int socket; icq_SocketHandler handlers[ICQ_SOCKET_MAX]; void *data[ICQ_SOCKET_MAX]; }; int icq_SocketNew(int domain, int type, int protocol); int icq_SocketAccept(int listens, struct sockaddr *addr, int *addrlen); void icq_SocketAlloc(int s); int icq_SocketDelete(int socket); void icq_SocketSetHandler(int socket, int type, icq_SocketHandler handler, void *data); void icq_SocketReady(icq_Socket *s, int type); void icq_SocketBuildFdSets(void); void icq_SocketPoll(); icq_Socket *icq_FindSocket(int socket); extern list *icq_SocketList; #endif /* _SOCKETMANAGER_H */