comparison libpurple/protocols/oscar/peer.h @ 29606:0d3145e6b1d6

Change the oscar capabilities variable to be a guint64 everywhere instead of an enum, which can be 32 bits
author Mark Doliner <mark@kingant.net>
date Thu, 18 Mar 2010 04:53:49 +0000
parents 6e1967b0f90b
children 1d657e98667b
comparison
equal deleted inserted replaced
29605:ffc1f997cb91 29606:0d3145e6b1d6
134 }; 134 };
135 135
136 struct _PeerConnection 136 struct _PeerConnection
137 { 137 {
138 OscarData *od; 138 OscarData *od;
139 OscarCapability type; 139 guint64 type;
140 char *bn; 140 char *bn;
141 guchar magic[4]; 141 guchar magic[4];
142 guchar cookie[8]; 142 guchar cookie[8];
143 guint16 lastrequestnumber; 143 guint16 lastrequestnumber;
144 144
226 * sane defaults. 226 * sane defaults.
227 * 227 *
228 * @param type The type of the peer connection. One of 228 * @param type The type of the peer connection. One of
229 * OSCAR_CAPABILITY_DIRECTIM or OSCAR_CAPABILITY_SENDFILE. 229 * OSCAR_CAPABILITY_DIRECTIM or OSCAR_CAPABILITY_SENDFILE.
230 */ 230 */
231 PeerConnection *peer_connection_new(OscarData *od, OscarCapability type, const char *bn); 231 PeerConnection *peer_connection_new(OscarData *od, guint64 type, const char *bn);
232 232
233 void peer_connection_destroy(PeerConnection *conn, OscarDisconnectReason reason, const gchar *error_message); 233 void peer_connection_destroy(PeerConnection *conn, OscarDisconnectReason reason, const gchar *error_message);
234 void peer_connection_schedule_destroy(PeerConnection *conn, OscarDisconnectReason reason, const gchar *error_message); 234 void peer_connection_schedule_destroy(PeerConnection *conn, OscarDisconnectReason reason, const gchar *error_message);
235 PeerConnection *peer_connection_find_by_type(OscarData *od, const char *bn, OscarCapability type); 235 PeerConnection *peer_connection_find_by_type(OscarData *od, const char *bn, guint64 type);
236 PeerConnection *peer_connection_find_by_cookie(OscarData *od, const char *bn, const guchar *cookie); 236 PeerConnection *peer_connection_find_by_cookie(OscarData *od, const char *bn, const guchar *cookie);
237 237
238 void peer_connection_listen_cb(gpointer data, gint source, PurpleInputCondition cond); 238 void peer_connection_listen_cb(gpointer data, gint source, PurpleInputCondition cond);
239 void peer_connection_recv_cb(gpointer data, gint source, PurpleInputCondition cond); 239 void peer_connection_recv_cb(gpointer data, gint source, PurpleInputCondition cond);
240 void peer_connection_send(PeerConnection *conn, ByteStream *bs); 240 void peer_connection_send(PeerConnection *conn, ByteStream *bs);
241 241
242 void peer_connection_trynext(PeerConnection *conn); 242 void peer_connection_trynext(PeerConnection *conn);
243 void peer_connection_finalize_connection(PeerConnection *conn); 243 void peer_connection_finalize_connection(PeerConnection *conn);
244 void peer_connection_propose(OscarData *od, OscarCapability type, const char *bn); 244 void peer_connection_propose(OscarData *od, guint64 type, const char *bn);
245 void peer_connection_got_proposition(OscarData *od, const gchar *bn, const gchar *message, IcbmArgsCh2 *args); 245 void peer_connection_got_proposition(OscarData *od, const gchar *bn, const gchar *message, IcbmArgsCh2 *args);
246 246
247 /* 247 /*
248 * For ODC 248 * For ODC
249 */ 249 */