diff options
Diffstat (limited to 'ext/gsm/gstgsmenc.h')
-rw-r--r-- | ext/gsm/gstgsmenc.h | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/ext/gsm/gstgsmenc.h b/ext/gsm/gstgsmenc.h index 2366ed69..cfc88722 100644 --- a/ext/gsm/gstgsmenc.h +++ b/ext/gsm/gstgsmenc.h @@ -17,11 +17,9 @@ * Boston, MA 02111-1307, USA. */ - #ifndef __GST_GSMENC_H__ #define __GST_GSMENC_H__ - #include <gst/gst.h> #ifdef GSM_HEADER_IN_SUBDIR @@ -30,10 +28,7 @@ #include <gsm.h> #endif -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - +G_BEGIN_DECLS #define GST_TYPE_GSMENC \ (gst_gsmenc_get_type()) @@ -49,33 +44,29 @@ extern "C" { typedef struct _GstGSMEnc GstGSMEnc; typedef struct _GstGSMEncClass GstGSMEncClass; -struct _GstGSMEnc { +struct _GstGSMEnc +{ GstElement element; /* pads */ - GstPad *sinkpad,*srcpad; + GstPad *sinkpad, *srcpad; gsm state; gsm_signal buffer[160]; gint bufsize; - - guint64 next_ts; - gint rate; + GstClockTime next_ts; }; -struct _GstGSMEncClass { +struct _GstGSMEncClass +{ GstElementClass parent_class; /* signals */ - void (*frame_encoded) (GstElement *element); + void (*frame_encoded) (GstElement * element); }; -GType gst_gsmenc_get_type(void); - - -#ifdef __cplusplus -} -#endif /* __cplusplus */ +GType gst_gsmenc_get_type (void); +G_END_DECLS #endif /* __GST_GSMENC_H__ */ |