diff libpurple/protocols/myspace/myspace.h @ 17373:2aff11bb5e72

Several small changes to work towards a working msim_remove_buddy(): (Note: I'm not there yet) Change MsimSession.userid to an integer. Change msim_postprocess_outgoing() to accept a format string in the _uid_field_name field, having "%d" replaced with the userid (instead of adding a new field with the userid). Added so that the "body" field can be postprocessed. Enable msim_remove_buddy() to send the persistance buddy delete message, but it does not yet work. Add msim_new_reply_callback() for setting up a persistance reply callback, instead of having to manually insert into the hash tables. Add msim_msg_get_own_uid{,_cb}() to get our own userid. Rename MG_YOUR_MYSPACE_INFO to MG_OWN_MYSPACE_INFO.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Wed, 13 Jun 2007 21:21:48 +0000
parents d9aaccef8721
children e9dfd3a5d4b6
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h	Tue Jun 12 03:40:38 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.h	Wed Jun 13 21:21:48 2007 +0000
@@ -114,7 +114,7 @@
     PurpleAccount *account;
     PurpleConnection *gc;
     guint sesskey;                      /**< Session key from server */
-    gchar *userid;                      /**< This user's numeric user ID */
+    guint userid;                       /**< This user's numeric user ID */
     gint fd;                            /**< File descriptor to/from server */
 
 	/* TODO: Remove. */
@@ -184,6 +184,12 @@
 
 void msim_input_cb(gpointer gc_uncasted, gint source, 
 		PurpleInputCondition cond);
+
+guint msim_new_reply_callback(MsimSession *session, MSIM_USER_LOOKUP_CB cb, gpointer data);
+
+void msim_get_own_uid_cb(MsimSession *session, MsimMessage *userinfo, gpointer data);
+void msim_get_own_uid(MsimSession *session);
+
 void msim_connect_cb(gpointer data, gint source, 
 		const gchar *error_message);