Replace functions which called once with their bodies
[pidgin-git.git] / libpurple / protocols / jabber / usertune.h
blob8d6051dd37116690353fbaf57b7cd0df90b2a939
1 /*
2 * purple - Jabber Protocol Plugin
4 * Purple is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24 #ifndef PURPLE_JABBER_USERTUNE_H
25 #define PURPLE_JABBER_USERTUNE_H
27 #include "jabber.h"
29 /* Implementation of XEP-0118 */
31 typedef struct _PurpleJabberTuneInfo PurpleJabberTuneInfo;
32 struct _PurpleJabberTuneInfo {
33 char *artist;
34 char *title;
35 char *album;
36 char *track; /* either the index of the track in the album or the URL for a stream */
37 int time; /* in seconds, -1 for unknown */
38 char *url;
41 void jabber_tune_init(void);
43 void jabber_tune_set(PurpleConnection *gc, const PurpleJabberTuneInfo *tuneinfo);
45 #endif /* PURPLE_JABBER_USERTUNE_H */