* Copyright (C) 2005 Bartosz Oler <bartosz@bzimage.us> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program 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 General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA #define GGP_UIN_LEN_MAX 10 #include <libsoup/soup.h> #include "message-prpl.h" #define GGP_TYPE_PROTOCOL (ggp_protocol_get_type()) #define GGP_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GGP_TYPE_PROTOCOL, GGPProtocol)) #define GGP_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GGP_TYPE_PROTOCOL, GGPProtocolClass)) #define GGP_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GGP_TYPE_PROTOCOL)) #define GGP_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GGP_TYPE_PROTOCOL)) #define GGP_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GGP_TYPE_PROTOCOL, GGPProtocolClass)) PurpleProtocolClass parent_class; struct gg_session *session; ggp_image_session_data *image_data; ggp_avatar_session_data *avatar_data; ggp_roster_session_data roster_data; ggp_multilogon_session_data *multilogon_data; ggp_status_session_data *status_data; ggp_chat_session_data *chat_data; ggp_message_session_data *message_data; ggp_edisc_session_data *edisc_data; G_MODULE_EXPORT GType ggp_protocol_get_type(void); ggp_buddy_data * ggp_buddy_get_data(PurpleBuddy *buddy); const gchar * ggp_get_imtoken(PurpleConnection *gc); uin_t ggp_own_uin(PurpleConnection *gc); void ggp_async_login_handler(gpointer _gc, gint fd, PurpleInputCondition cond); #endif /* PURPLE_GG_GG_H */