summaryrefslogtreecommitdiffstats
path: root/sys/qcam/gstqcamsrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/qcam/gstqcamsrc.h')
-rw-r--r--sys/qcam/gstqcamsrc.h48
1 files changed, 26 insertions, 22 deletions
diff --git a/sys/qcam/gstqcamsrc.h b/sys/qcam/gstqcamsrc.h
index 0bd201c8..c6e763d4 100644
--- a/sys/qcam/gstqcamsrc.h
+++ b/sys/qcam/gstqcamsrc.h
@@ -25,8 +25,9 @@
#include <gst/gst.h>
#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+extern "C"
+{
+#endif /* __cplusplus */
/** QuickCam include files */
#include "qcam.h"
@@ -44,35 +45,38 @@ extern "C" {
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_QCAMSRC))
/* NOTE: per-element flags start with 16 for now */
-typedef enum {
- GST_QCAMSRC_OPEN = GST_ELEMENT_FLAG_LAST,
+ typedef enum
+ {
+ GST_QCAMSRC_OPEN = GST_ELEMENT_FLAG_LAST,
- GST_QCAMSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
-} GstQCamSrcFlags;
+ GST_QCAMSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
+ } GstQCamSrcFlags;
-typedef struct _GstQCamSrc GstQCamSrc;
-typedef struct _GstQCamSrcClass GstQCamSrcClass;
+ typedef struct _GstQCamSrc GstQCamSrc;
+ typedef struct _GstQCamSrcClass GstQCamSrcClass;
-struct _GstQCamSrc {
- GstElement element;
+ struct _GstQCamSrc
+ {
+ GstElement element;
- /* pads */
- GstPad *srcpad;
+ /* pads */
+ GstPad *srcpad;
- struct qcam *qcam;
- gboolean autoexposure;
- gint port;
-};
+ struct qcam *qcam;
+ gboolean autoexposure;
+ gint port;
+ };
-struct _GstQCamSrcClass {
- GstElementClass parent_class;
-};
+ struct _GstQCamSrcClass
+ {
+ GstElementClass parent_class;
+ };
-GType gst_qcamsrc_get_type(void);
+ GType gst_qcamsrc_get_type (void);
#ifdef __cplusplus
}
-#endif /* __cplusplus */
+#endif /* __cplusplus */
-#endif /* __GST_QCAMSRC_H__ */
+#endif /* __GST_QCAMSRC_H__ */