comparison finch/gntmedia.h @ 23789:128f6cb57829

Some media support in finch. This needs to be updated for the got-accept signal.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 22 Mar 2008 04:51:58 +0000
parents
children e1c8ec1259de
comparison
equal deleted inserted replaced
23788:9f36ed35615e 23789:128f6cb57829
1 /**
2 * @file gntmedia.h GNT Media API
3 * @ingroup finch
4 */
5
6 /* finch
7 *
8 * Finch is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */
26
27 #ifndef GNT_MEDIA_H
28 #define GNT_MEDIA_H
29
30 #ifdef HAVE_CONFIG_H
31 #include "config.h"
32 #endif
33
34 #ifdef USE_FARSIGHT
35
36 #include <farsight/farsight.h>
37 #include <glib-object.h>
38 #include "gntbox.h"
39
40 G_BEGIN_DECLS
41
42 #define FINCH_TYPE_MEDIA (finch_media_get_type())
43 #define FINCH_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), FINCH_TYPE_MEDIA, FinchMedia))
44 #define FINCH_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), FINCH_TYPE_MEDIA, FinchMediaClass))
45 #define FINCH_IS_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), FINCH_TYPE_MEDIA))
46 #define FINCH_IS_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), FINCH_TYPE_MEDIA))
47 #define FINCH_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), FINCH_TYPE_MEDIA, FinchMediaClass))
48
49 typedef struct _FinchMedia FinchMedia;
50 typedef struct _FinchMediaClass FinchMediaClass;
51 typedef struct _FinchMediaPrivate FinchMediaPrivate;
52 typedef enum _FinchMediaState FinchMediaState;
53
54 struct _FinchMediaClass
55 {
56 GntBoxClass parent_class;
57 };
58
59 struct _FinchMedia
60 {
61 GntBox parent;
62 FinchMediaPrivate *priv;
63 };
64
65 GType finch_media_get_type(void);
66
67 GntWidget *finch_media_new(PurpleMedia *media, GstElement *send_level, GstElement *recv_level);
68
69 void finch_media_manager_init(void);
70
71 void finch_media_manager_uninit(void);
72
73 G_END_DECLS
74
75 #endif /* USE_FARSIGHT */
76
77 #endif /* GNT_MEDIA_H */
78