validate/private: Avoid double typdef
authorEdward Hervey <bilboed@bilboed.com>
Fri, 12 Sep 2014 07:49:35 +0000 (09:49 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 12 Sep 2014 07:49:35 +0000 (09:49 +0200)
Instead just include required (public and local) header

gst-validate-scenario.h:43:44: error: redefinition of typedef 'GstValidateActionParameter' is a C11 feature [-Werror,-Wtypedef-redefinition]

validate/gst/validate/gst-validate-internal.h

index 2f7120b..fb13045 100644 (file)
@@ -23,6 +23,7 @@
 #define __GST_VALIDATE_INTERNAL_H__
 
 #include <gst/gst.h>
+#include "gst-validate-scenario.h"
 
 GST_DEBUG_CATEGORY_EXTERN (gstvalidate_debug);
 #define GST_CAT_DEFAULT gstvalidate_debug
@@ -30,11 +31,7 @@ GST_DEBUG_CATEGORY_EXTERN (gstvalidate_debug);
 extern GRegex *newline_regex;
 
 
-typedef struct _GstValidateScenario        GstValidateScenario;
-typedef struct _GstValidateAction          GstValidateAction;
-typedef struct _GstValidateActionParameter GstValidateActionParameter;
 typedef struct _GstValidateActionType      GstValidateActionType;
-typedef gboolean (*GstValidateExecuteAction) (GstValidateScenario * scenario, GstValidateAction * action);
 
 struct _GstValidateActionType
 {