Modified in accordance to coding guidelines for header and C files.
[glsdk/dual-decode.git] / include / gst-controller.h
index 37936543744e5660f82f1563a1de7c315caccb08..28eaa8aa62c449367ea44f5cb24328c093650d61 100644 (file)
@@ -45,8 +45,8 @@
  * @brief Defines the structures and function prototypes.                                                                       
  */
 
-#ifndef __GST-CONTROLLER_H__                                                               
-#define __GST-CONTROLLER_H__
+#ifndef __GST_CONTROLLER_H__                                                               
+#define __GST_CONTROLLER_H__
  
 #include <gtk/gtk.h>
 #include <gst/gst.h>
@@ -61,6 +61,24 @@ typedef void (*EOSFunc) (gpointer data);
 typedef void (*ErrorFunc) (gpointer data);
 
 
+/******************************************************************************
+
+                            Structure Definitions
+       
+******************************************************************************/
+
+typedef struct Pipeline {
+    /* GStreamer pipeline */
+    GstElement *pipe;
+
+    /* callback functions */
+    LogFunc  logFunc;
+       EOSFunc eosFunc;
+       ErrorFunc errFunc;
+
+    /* Signal for a pipeline */
+    gulong busSignal;
+} Pipeline;
 
 /****************************************************************************** 
                                                                                 
@@ -175,24 +193,6 @@ void DualDecode_setPipelineSink (Pipeline *pipePtr, GstElement *sink0,
                                  GstElement *sink1);
 
 
-/******************************************************************************
-
-                            Structure Definitions
-       
-******************************************************************************/
-
-typedef struct Pipeline {
-    /* GStreamer pipeline */
-    GstElement *pipe;
-
-    /* callback functions */
-    LogFunc  logFunc;
-       EOSFunc eosFunc;
-       ErrorFunc errFunc;
-
-    /* Signal for a pipeline */
-    gulong busSignal;
-} Pipeline;
 
 /******************************************************************************
  
@@ -205,4 +205,4 @@ typedef struct Pipeline {
 #define HH 2
 #define TIMEOUT 4000000000
 
-#endif /*__GST-CONTROLLER_H__*/  
+#endif /*__GST_CONTROLLER_H__*/