Mercurial > pidgin
comparison libpurple/protocols/jabber/usertune.h @ 17866:759cd72bd2ff
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Mon, 18 Jun 2007 12:37:29 +0000 |
parents | 3e437e86bd6e |
children | 5767b7698c73 |
comparison
equal
deleted
inserted
replaced
17865:f2686bec13c0 | 17866:759cd72bd2ff |
---|---|
24 | 24 |
25 #include "jabber.h" | 25 #include "jabber.h" |
26 | 26 |
27 /* Implementation of XEP-0118 */ | 27 /* Implementation of XEP-0118 */ |
28 | 28 |
29 typedef struct _PurpleJabberTuneInfo PurpleJabberTuneInfo; | |
30 struct _PurpleJabberTuneInfo { | |
31 char *artist; | |
32 char *title; | |
33 char *album; | |
34 char *track; /* either the index of the track in the album or the URL for a stream */ | |
35 int time; /* in seconds, -1 for unknown */ | |
36 char *url; | |
37 }; | |
38 | |
29 void jabber_tune_init(void); | 39 void jabber_tune_init(void); |
30 | 40 |
31 void jabber_tune_set(PurpleConnection *gc, const PurpleTuneInfo *tuneinfo); | 41 void jabber_tune_set(PurpleConnection *gc, const PurpleJabberTuneInfo *tuneinfo); |
32 | 42 |
33 #endif /* _PURPLE_JABBER_USERTUNE_H_ */ | 43 #endif /* _PURPLE_JABBER_USERTUNE_H_ */ |