23760
|
1 /**
|
|
2 * @file media.h Account API
|
|
3 * @ingroup core
|
|
4 *
|
|
5 * purple
|
|
6 *
|
|
7 * Purple is the legal property of its developers, whose names are too numerous
|
|
8 * to list here. Please refer to the COPYRIGHT file distributed with this
|
|
9 * source distribution.
|
|
10 *
|
|
11 * This program is free software; you can redistribute it and/or modify
|
|
12 * it under the terms of the GNU General Public License as published by
|
|
13 * the Free Software Foundation; either version 2 of the License, or
|
|
14 * (at your option) any later version.
|
|
15 *
|
|
16 * This program is distributed in the hope that it will be useful,
|
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 * GNU General Public License for more details.
|
|
20 *
|
|
21 * You should have received a copy of the GNU General Public License
|
|
22 * along with this program; if not, write to the Free Software
|
|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
24 */
|
|
25
|
|
26 #ifndef __MEDIA_MANAGER_H_
|
|
27 #define __MEDIA_MANAGER_H_
|
|
28
|
|
29 #ifdef HAVE_CONFIG_H
|
|
30 #include "config.h"
|
|
31 #endif
|
|
32
|
|
33 #ifdef USE_FARSIGHT
|
|
34
|
|
35 #include <farsight/farsight.h>
|
|
36 #include <glib.h>
|
|
37 #include <glib-object.h>
|
|
38
|
|
39 #include "connection.h"
|
|
40 #include "media.h"
|
|
41
|
|
42 G_BEGIN_DECLS
|
|
43
|
|
44 #define PURPLE_TYPE_MEDIA_MANAGER (purple_media_manager_get_type())
|
|
45 #define PURPLE_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManager))
|
|
46 #define PURPLE_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass))
|
|
47 #define PURPLE_IS_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MEDIA_MANAGER))
|
|
48 #define PURPLE_IS_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_MEDIA_MANAGER))
|
|
49 #define PURPLE_MEDIA_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass))
|
|
50
|
|
51 typedef struct _PurpleMediaManager PurpleMediaManager;
|
|
52 typedef struct _PurpleMediaManagerClass PurpleMediaManagerClass;
|
|
53 typedef struct _PurpleMediaManagerPrivate PurpleMediaManagerPrivate;
|
|
54
|
|
55 struct _PurpleMediaManagerClass
|
|
56 {
|
|
57 GObjectClass parent_class;
|
|
58 };
|
|
59
|
|
60 struct _PurpleMediaManager
|
|
61 {
|
|
62 GObject parent;
|
|
63 PurpleMediaManagerPrivate *priv;
|
|
64 };
|
|
65
|
|
66 GType purple_media_manager_get_type();
|
|
67 PurpleMediaManager *purple_media_manager_get();
|
|
68
|
|
69 PurpleMedia *purple_media_manager_create_media(PurpleMediaManager *manager,
|
|
70 PurpleConnection *gc,
|
|
71 const char *screenname);
|
|
72
|
|
73 G_END_DECLS
|
|
74
|
|
75 #endif /* USE_FARSIGHT */
|
|
76
|
|
77
|
|
78 #endif /* __MEDIA_MANAGER_H_ */
|