diff -r d190ad19c386 -r 31c6475e3ff1 libpurple/protocols/myspace/myspace.h --- a/libpurple/protocols/myspace/myspace.h Sun Aug 12 06:54:15 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Sun Aug 12 07:35:51 2007 +0000 @@ -65,7 +65,7 @@ * the results to the Purple debug log, then exit. Useful to * run with 'pidgin -d' to see the output. Don't define if * you want to actually use the plugin! */ -/*#define MSIM_SELF_TEST */ +#define MSIM_SELF_TEST /* Constants */ @@ -175,7 +175,7 @@ #define MSIM_INBOX_FRIEND_REQUEST (1 << 3) #define MSIM_INBOX_PICTURE_COMMENT (1 << 4) -/* Everything needed to keep track of a session. */ +/* Everything needed to keep track of a session (proto_data field in PurpleConnection) */ typedef struct _MsimSession { guint magic; /**< MSIM_SESSION_STRUCT_MAGIC */ @@ -199,6 +199,21 @@ guint inbox_status; /**< Bit field of inbox notifications */ } MsimSession; +#if 0 +/* Hold ephemeral information about buddies, for proto_data of PurpleBuddy. */ +/* GHashTable? */ +typedef struct _MsimBuddy +{ + guint client_cv; + gchar *client_info; + guint age; + guint total_friends; + gchar *headline; + gchar *display_name; + gchar *username; +} MsimBuddy; +#endif + /* Check if an MsimSession is valid */ #define MSIM_SESSION_VALID(s) (session != NULL && session->magic == MSIM_SESSION_STRUCT_MAGIC)