Mercurial > pidgin.yaz
annotate libpurple/media/backend-fs2.h @ 31410:b1022aa66b8a
Call msn_transaction_destroy from msn_cmdproc_send_trans. This way, it
always owns in some way the transaction after being called.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 27 Nov 2010 07:08:24 +0000 |
parents | 6b460b78b720 |
children | 02a2e8183b1d |
rev | line source |
---|---|
29540 | 1 /** |
2 * @file backend-fs2.h Farsight 2 backend for media API | |
3 * @ingroup core | |
4 */ | |
5 | |
6 /* purple | |
7 * | |
8 * Purple 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 /* | |
28 * This file should not yet be part of libpurple's API. | |
29 * It should remain internal only for now. | |
30 */ | |
31 | |
32 #ifndef _MEDIA_BACKEND_FS2_H_ | |
33 #define _MEDIA_BACKEND_FS2_H_ | |
34 | |
35 #include <glib-object.h> | |
36 | |
37 G_BEGIN_DECLS | |
38 | |
39 #define PURPLE_TYPE_MEDIA_BACKEND_FS2 (purple_media_backend_fs2_get_type()) | |
40 #define PURPLE_IS_MEDIA_BACKEND_FS2(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MEDIA_BACKEND_FS2)) | |
41 #define PURPLE_IS_MEDIA_BACKEND_FS2_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_MEDIA_BACKEND_FS2)) | |
42 #define PURPLE_MEDIA_BACKEND_FS2(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MEDIA_BACKEND_FS2, PurpleMediaBackendFs2)) | |
43 #define PURPLE_MEDIA_BACKEND_FS2_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MEDIA_BACKEND_FS2, PurpleMediaBackendFs2)) | |
44 #define PURPLE_MEDIA_BACKEND_FS2_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MEDIA_BACKEND_FS2, PurpleMediaBackendFs2)) | |
45 | |
46 /** An opaque structure representing the Farsight 2 media backend. */ | |
47 typedef struct _PurpleMediaBackendFs2 PurpleMediaBackendFs2; | |
48 | |
49 /** | |
50 * Gets the type of the Farsight 2 media backend object. | |
51 * | |
52 * @return The Farsight 2 media backend's GType | |
53 * | |
54 * @since 2.7.0 | |
55 */ | |
56 GType purple_media_backend_fs2_get_type(void); | |
57 | |
30514
6b460b78b720
Apply Polynomial-C's suggestion for fixing a compile error with
Mark Doliner <mark@kingant.net>
parents:
29590
diff
changeset
|
58 #ifdef USE_GSTREAMER |
29548
2f8151fed0ae
Various tweaks, fixes, and added debug output. Attached some media signals,
maiku@pidgin.im
parents:
29540
diff
changeset
|
59 /* |
2f8151fed0ae
Various tweaks, fixes, and added debug output. Attached some media signals,
maiku@pidgin.im
parents:
29540
diff
changeset
|
60 * Temporary function in order to be able to test while |
2f8151fed0ae
Various tweaks, fixes, and added debug output. Attached some media signals,
maiku@pidgin.im
parents:
29540
diff
changeset
|
61 * integrating with PurpleMedia |
2f8151fed0ae
Various tweaks, fixes, and added debug output. Attached some media signals,
maiku@pidgin.im
parents:
29540
diff
changeset
|
62 */ |
29590
2751016b8084
Remove references to FsStream in PurpleMedia.
maiku@pidgin.im
parents:
29589
diff
changeset
|
63 #include <gst/gst.h> |
29583
eadb9e309b87
Move all src and sink creation in PurpleMedia to the Fs2 media backend.
maiku@pidgin.im
parents:
29582
diff
changeset
|
64 GstElement *purple_media_backend_fs2_get_src( |
eadb9e309b87
Move all src and sink creation in PurpleMedia to the Fs2 media backend.
maiku@pidgin.im
parents:
29582
diff
changeset
|
65 PurpleMediaBackendFs2 *self, |
eadb9e309b87
Move all src and sink creation in PurpleMedia to the Fs2 media backend.
maiku@pidgin.im
parents:
29582
diff
changeset
|
66 const gchar *sess_id); |
eadb9e309b87
Move all src and sink creation in PurpleMedia to the Fs2 media backend.
maiku@pidgin.im
parents:
29582
diff
changeset
|
67 GstElement *purple_media_backend_fs2_get_tee( |
eadb9e309b87
Move all src and sink creation in PurpleMedia to the Fs2 media backend.
maiku@pidgin.im
parents:
29582
diff
changeset
|
68 PurpleMediaBackendFs2 *self, |
eadb9e309b87
Move all src and sink creation in PurpleMedia to the Fs2 media backend.
maiku@pidgin.im
parents:
29582
diff
changeset
|
69 const gchar *sess_id, const gchar *who); |
29585
95f918df7f09
Move volume setting functionality to the Fs2 media backend.
maiku@pidgin.im
parents:
29584
diff
changeset
|
70 void purple_media_backend_fs2_set_input_volume(PurpleMediaBackendFs2 *self, |
95f918df7f09
Move volume setting functionality to the Fs2 media backend.
maiku@pidgin.im
parents:
29584
diff
changeset
|
71 const gchar *sess_id, double level); |
95f918df7f09
Move volume setting functionality to the Fs2 media backend.
maiku@pidgin.im
parents:
29584
diff
changeset
|
72 void purple_media_backend_fs2_set_output_volume(PurpleMediaBackendFs2 *self, |
95f918df7f09
Move volume setting functionality to the Fs2 media backend.
maiku@pidgin.im
parents:
29584
diff
changeset
|
73 const gchar *sess_id, const gchar *who, double level); |
29548
2f8151fed0ae
Various tweaks, fixes, and added debug output. Attached some media signals,
maiku@pidgin.im
parents:
29540
diff
changeset
|
74 /* end tmp */ |
30514
6b460b78b720
Apply Polynomial-C's suggestion for fixing a compile error with
Mark Doliner <mark@kingant.net>
parents:
29590
diff
changeset
|
75 #endif /* USE_GSTREAMER */ |
29548
2f8151fed0ae
Various tweaks, fixes, and added debug output. Attached some media signals,
maiku@pidgin.im
parents:
29540
diff
changeset
|
76 |
29540 | 77 G_END_DECLS |
78 | |
79 #endif /* _MEDIA_BACKEND_FS2_H_ */ |