Mercurial > pidgin
diff src/protocols/oscar/rxhandlers.c @ 13234:f2431a7e33aa
[gaim-migrate @ 15600]
Massive oscar shuffling. No change in functionality.
I renamed each of the files that contains stuff for a SNAC family.
I started splitting the file transfer/direct connect stuff into
peer.c and peer.h. I stopped using fu8_t, fu16_t and fu32_t and
switched to guint8, guint16 and guint32 instead. I changed the
SNAC family and subtype defines so they are more meaningful.
Added LGPL copyright header to each file. Added myself to the
AUTHORS file.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 11 Feb 2006 21:45:18 +0000 |
parents | a88ca6da0b38 |
children | f260d319bbbc |
line wrap: on
line diff
--- a/src/protocols/oscar/rxhandlers.c Sat Feb 11 19:16:38 2006 +0000 +++ b/src/protocols/oscar/rxhandlers.c Sat Feb 11 21:45:18 2006 +0000 @@ -1,3 +1,23 @@ +/* + * Gaim's oscar protocol plugin + * This file is the legal property of its developers. + * Please see the AUTHORS file distributed alongside this file. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + /* * rxhandlers.c * @@ -7,18 +27,18 @@ * */ -#define FAIM_INTERNAL -#include <aim.h> +#include "oscar.h" +#include "peer.h" struct aim_rxcblist_s { - fu16_t family; - fu16_t type; + guint16 family; + guint16 type; aim_rxcallback_t handler; - fu16_t flags; + guint16 flags; struct aim_rxcblist_s *next; }; -faim_internal aim_module_t *aim__findmodulebygroup(aim_session_t *sess, fu16_t group) +faim_internal aim_module_t *aim__findmodulebygroup(aim_session_t *sess, guint16 group) { aim_module_t *cur; @@ -143,7 +163,7 @@ return 0; } -static int consumenonsnac(aim_session_t *sess, aim_frame_t *rx, fu16_t family, fu16_t subtype) +static int consumenonsnac(aim_session_t *sess, aim_frame_t *rx, guint16 family, guint16 subtype) { aim_module_t *cur; aim_modsnac_t snac; @@ -170,7 +190,7 @@ { aim_tlvlist_t *tlvlist; char *msg = NULL; - fu16_t code = 0; + guint16 code = 0; aim_rxcallback_t userfunc; int ret = 1; @@ -208,8 +228,8 @@ */ static int bleck(aim_session_t *sess, aim_frame_t *frame, ...) { - fu16_t family, subtype; - fu16_t maxf, maxs; + guint16 family, subtype; + guint16 maxf, maxs; static const char *channels[6] = { "Invalid (0)", @@ -391,7 +411,7 @@ return 1; } -faim_export int aim_conn_addhandler(aim_session_t *sess, aim_conn_t *conn, fu16_t family, fu16_t type, aim_rxcallback_t newhandler, fu16_t flags) +faim_export int aim_conn_addhandler(aim_session_t *sess, aim_conn_t *conn, guint16 family, guint16 type, aim_rxcallback_t newhandler, guint16 flags) { struct aim_rxcblist_s *newcb; @@ -441,7 +461,7 @@ return 0; } -faim_internal aim_rxcallback_t aim_callhandler(aim_session_t *sess, aim_conn_t *conn, fu16_t family, fu16_t type) +faim_internal aim_rxcallback_t aim_callhandler(aim_session_t *sess, aim_conn_t *conn, guint16 family, guint16 type) { struct aim_rxcblist_s *cur; @@ -477,7 +497,7 @@ return; } -faim_internal int aim_callhandler_noparam(aim_session_t *sess, aim_conn_t *conn,fu16_t family, fu16_t type, aim_frame_t *ptr) +faim_internal int aim_callhandler_noparam(aim_session_t *sess, aim_conn_t *conn,guint16 family, guint16 type, aim_frame_t *ptr) { aim_rxcallback_t userfunc;