1 /* 2 * Farstream - Farstream libnice Stream Transmitter 3 * 4 * Copyright 2007-2008 Collabora Ltd. 5 * @author: Olivier Crete <olivier.crete@collabora.co.uk> 6 * Copyright 2007-2008 Nokia Corp. 7 * 8 * fs-nice-stream-transmitter.h - A Farstream libnice based stream transmitter 9 * 10 * This library is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU Lesser General Public 12 * License as published by the Free Software Foundation; either 13 * version 2.1 of the License, or (at your option) any later version. 14 * 15 * This library is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * Lesser General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public 21 * License along with this library; if not, write to the Free Software 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 23 */ 24 25 #ifndef __FS_NICE_STREAM_TRANSMITTER_H__ 26 #define __FS_NICE_STREAM_TRANSMITTER_H__ 27 28 #include <glib.h> 29 #include <glib-object.h> 30 31 #include <farstream/fs-stream-transmitter.h> 32 #include <farstream/fs-plugin.h> 33 #include "fs-nice-transmitter.h" 34 35 G_BEGIN_DECLS 36 37 /* TYPE MACROS */ 38 #define FS_TYPE_NICE_STREAM_TRANSMITTER \ 39 (fs_nice_stream_transmitter_get_type ()) 40 #define FS_NICE_STREAM_TRANSMITTER(obj) \ 41 (G_TYPE_CHECK_INSTANCE_CAST((obj), FS_TYPE_NICE_STREAM_TRANSMITTER, \ 42 FsNiceStreamTransmitter)) 43 #define FS_NICE_STREAM_TRANSMITTER_CLASS(klass) \ 44 (G_TYPE_CHECK_CLASS_CAST((klass), FS_TYPE_NICE_STREAM_TRANSMITTER, \ 45 FsNiceStreamTransmitterClass)) 46 #define FS_IS_NICE_STREAM_TRANSMITTER(obj) \ 47 (G_TYPE_CHECK_INSTANCE_TYPE((obj), FS_TYPE_NICE_STREAM_TRANSMITTER)) 48 #define FS_IS_NICE_STREAM_TRANSMITTER_CLASS(klass) \ 49 (G_TYPE_CHECK_CLASS_TYPE((klass), FS_TYPE_NICE_STREAM_TRANSMITTER)) 50 #define FS_NICE_STREAM_TRANSMITTER_GET_CLASS(obj) \ 51 (G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_NICE_STREAM_TRANSMITTER, \ 52 FsNiceStreamTransmitterClass)) 53 #define FS_NICE_STREAM_TRANSMITTER_CAST(obj) ((FsNiceStreamTransmitter *) (obj)) 54 55 typedef struct _FsNiceStreamTransmitter FsNiceStreamTransmitter; 56 typedef struct _FsNiceStreamTransmitterClass FsNiceStreamTransmitterClass; 57 typedef struct _FsNiceStreamTransmitterPrivate FsNiceStreamTransmitterPrivate; 58 59 /** 60 * FsNiceStreamTransmitterClass: 61 * @parent_class: Our parent 62 * 63 * The Raw UDP stream transmitter class 64 */ 65 66 struct _FsNiceStreamTransmitterClass 67 { 68 FsStreamTransmitterClass parent_class; 69 70 /*virtual functions */ 71 /*< private >*/ 72 }; 73 74 /** 75 * FsNiceStreamTransmitter: 76 * @parent: Parent object 77 * 78 * All members are private, access them using methods and properties 79 */ 80 struct _FsNiceStreamTransmitter 81 { 82 FsStreamTransmitter parent; 83 84 /*< private >*/ 85 FsNiceStreamTransmitterPrivate *priv; 86 }; 87 88 GType fs_nice_stream_transmitter_register_type (FsPlugin *module); 89 90 GType fs_nice_stream_transmitter_get_type (void); 91 92 FsNiceStreamTransmitter * 93 fs_nice_stream_transmitter_newv (FsNiceTransmitter *transmitter, 94 FsParticipant *participant, 95 guint n_parameters, 96 GParameter *parameters, 97 GError **error); 98 99 100 G_END_DECLS 101 102 #endif /* __FS_NICE_STREAM_TRANSMITTER_H__ */ 103