diff libpurple/protocols/myspace/myspace.h @ 17360:ceba4fc06c41

Change msim_send_im_by_userid_cb() to msim_send_im_cb(), and remove msim_send_im_by_userid() and send_im_cb_struct. The callback now accepts a a MsimMessage *, created by msim_send_im(), instead of a send_im_cb_struct. This will make it easier to eliminate callbacks in the future.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Mon, 04 Jun 2007 03:49:11 +0000
parents 176b1ba4bafe
children 3a02e7db91c7
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h	Mon Jun 04 03:30:55 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.h	Mon Jun 04 03:49:11 2007 +0000
@@ -135,14 +135,6 @@
 typedef void (*MSIM_USER_LOOKUP_CB)(MsimSession *session, MsimMessage *userinfo,
           gpointer data);
 
-/* Passed to MSIM_USER_LOOKUP_CB for msim_send_im_cb - called when
- * user information is available, ready to send a message. */
-typedef struct _send_im_cb_struct
-{
-    gchar *who;
-    gchar *message;
-} send_im_cb_struct;
-
 /* Functions */
 gboolean msim_load(PurplePlugin *plugin);
 GList *msim_status_types(PurpleAccount *acct);
@@ -164,9 +156,7 @@
 
 int msim_send_im(PurpleConnection *gc, const char *who, const char *message, 
 	PurpleMessageFlags flags);
-int msim_send_im_by_userid(MsimSession *session, const gchar *userid, 
-		const gchar *message);
-void msim_send_im_by_userid_cb(MsimSession *session, MsimMessage *userinfo, gpointer data);
+void msim_send_im_cb(MsimSession *session, MsimMessage *userinfo, gpointer data);
 void msim_incoming_im_cb(MsimSession *session, MsimMessage *userinfo, 
 		               gpointer data);