Mercurial > pidgin
comparison libpurple/protocols/jabber/google/google_session.h @ 30474:721b257bcd8c
Remove direct use of PurpleMedia in the GoogleSession struct
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Mon, 29 Mar 2010 21:45:00 +0000 |
parents | 34f586bffe4e |
children | 2e26b90a28dd |
comparison
equal
deleted
inserted
replaced
30473:34f586bffe4e | 30474:721b257bcd8c |
---|---|
21 #ifndef PURPLE_JABBER_GOOGLE_SESSION_H_ | 21 #ifndef PURPLE_JABBER_GOOGLE_SESSION_H_ |
22 #define PURPLE_JABBER_GOOGLE_SESSION_H_ | 22 #define PURPLE_JABBER_GOOGLE_SESSION_H_ |
23 | 23 |
24 #include "jabber.h" | 24 #include "jabber.h" |
25 | 25 |
26 typedef struct { | |
27 char *id; | |
28 char *initiator; | |
29 } GoogleSessionId; | |
30 | |
31 typedef enum { | |
32 UNINIT, | |
33 SENT_INITIATE, | |
34 RECEIVED_INITIATE, | |
35 IN_PRORESS, | |
36 TERMINATED | |
37 } GoogleSessionState; | |
38 | |
39 typedef struct { | |
40 GoogleSessionId id; | |
41 GoogleSessionState state; | |
42 JabberStream *js; | |
43 char *remote_jid; | |
44 gpointer session_data; | |
45 } GoogleSession; | |
46 | |
26 gboolean jabber_google_session_initiate(JabberStream *js, const gchar *who, | 47 gboolean jabber_google_session_initiate(JabberStream *js, const gchar *who, |
27 PurpleMediaSessionType type); | 48 PurpleMediaSessionType type); |
28 | 49 |
29 void jabber_google_session_parse(JabberStream *js, const char *from, | 50 void jabber_google_session_parse(JabberStream *js, const char *from, |
30 JabberIqType type, const char *iq, xmlnode *session); | 51 JabberIqType type, const char *iq, xmlnode *session); |