annotate libpurple/protocols/myspace/user.h @ 20037:ba649e93098b

it seems that "SOURCES" is a reserved variable in some versions of automake, which was causing this to break the build badly for me
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 14 Sep 2007 15:38:40 +0000
parents 44b4e8bd759b
children 51457cf3d27b 1141d47b162c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19443
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
1 /* MySpaceIM Protocol Plugin, header file
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
2 *
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
3 * Copyright (C) 2007, Jeff Connelly <jeff2@soc.pidgin.im>
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
4 *
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
7 * the Free Software Foundation; either version 2 of the License, or
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
8 * (at your option) any later version.
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
9 *
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
13 * GNU General Public License for more details.
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
14 *
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
16 * along with this program; if not, write to the Free Software
19681
44b4e8bd759b The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19443
diff changeset
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
19443
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
18 */
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
19
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
20 #ifndef _MYSPACE_USER_H
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
21 #define _MYSPACE_USER_H
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
22
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
23 /* Hold ephemeral information about buddies, for proto_data of PurpleBuddy. */
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
24 /* GHashTable? */
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
25 typedef struct _MsimUser
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
26 {
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
27 PurpleBuddy *buddy;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
28 guint client_cv;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
29 gchar *client_info;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
30 guint age;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
31 gchar *gender;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
32 gchar *location;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
33 guint total_friends;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
34 gchar *headline;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
35 gchar *display_name;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
36 /* Note: uid is in &buddy->node (set_blist_node_int), since it never changes */
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
37 gchar *username;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
38 gchar *band_name, *song_name;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
39 gchar *image_url;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
40 guint last_image_updated;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
41 } MsimUser;
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
42
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
43 /* Callback function pointer type for when a user's information is received,
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
44 * initiated from a user lookup. */
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
45 typedef void (*MSIM_USER_LOOKUP_CB)(MsimSession *session, MsimMessage *userinfo, gpointer data);
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
46
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
47 MsimUser *msim_get_user_from_buddy(PurpleBuddy *buddy);
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
48 MsimUser *msim_find_user(MsimSession *session, const gchar *username);
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
49 void msim_append_user_info(MsimSession *session, PurpleNotifyUserInfo *user_info, MsimUser *user, gboolean full);
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
50 gboolean msim_store_user_info(MsimSession *session, MsimMessage *msg, MsimUser *user);
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
51 gboolean msim_is_userid(const gchar *user);
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
52 gboolean msim_is_email(const gchar *user);
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
53 void msim_lookup_user(MsimSession *session, const gchar *user, MSIM_USER_LOOKUP_CB cb, gpointer data);
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
54
47c9c00878bf Add msimprpl's user module so we all can compile libpurple again ;)
Jeffrey Connelly <jaconnel@calpoly.edu>
parents:
diff changeset
55 #endif /* !_MYSPACE_USER_H */