gstreamer_core/gst/gstparse.h
changeset 16 8e837d1bf446
parent 0 0e761a78d257
child 10 6f340f756486
--- a/gstreamer_core/gst/gstparse.h	Wed Mar 24 17:58:42 2010 -0500
+++ b/gstreamer_core/gst/gstparse.h	Wed Mar 24 18:04:17 2010 -0500
@@ -57,18 +57,87 @@
   GST_PARSE_ERROR_EMPTY_BIN,
   GST_PARSE_ERROR_EMPTY
 } GstParseError;
+
+/**
+ * GstParseFlags:
+ * @GST_PARSE_FLAG_NONE: Do not use any special parsing options.
+ * @GST_PARSE_FLAG_FATAL_ERRORS: Always return NULL when an error occurs
+ *     (default behaviour is to return partially constructed bins or elements
+ *      in some cases)
+ *
+ * Parsing options.
+ *
+ * Since: 0.10.20
+ */
+typedef enum
+{
+  GST_PARSE_FLAG_NONE = 0,
+  GST_PARSE_FLAG_FATAL_ERRORS = (1 << 0)
+} GstParseFlags;
+
+/**
+ * GstParseContext:
+ *
+ * Opaque structure.
+ *
+ * Since: 0.10.20
+ */
+typedef struct _GstParseContext GstParseContext;
+
+/* create, process and free a parse context */
+#ifdef __SYMBIAN32__
+IMPORT_C
+#endif
+
+
+GstParseContext * gst_parse_context_new (void);
 #ifdef __SYMBIAN32__
 IMPORT_C
 #endif
 
 
+gchar          ** gst_parse_context_get_missing_elements (GstParseContext * context);
+#ifdef __SYMBIAN32__
+IMPORT_C
+#endif
 
-GstElement*	gst_parse_launch	(const gchar *pipeline_description, GError **error);
+
+void              gst_parse_context_free (GstParseContext * context);
+
+
+/* parse functions */
+#ifdef __SYMBIAN32__
+IMPORT_C
+#endif
+
+
+GstElement      * gst_parse_launch       (const gchar      * pipeline_description,
+                                          GError          ** error);
 #ifdef __SYMBIAN32__
 IMPORT_C
 #endif
 
-GstElement*	gst_parse_launchv	(const gchar **argv, GError **error);
+
+GstElement      * gst_parse_launchv      (const gchar     ** argv,
+                                          GError          ** error);
+#ifdef __SYMBIAN32__
+IMPORT_C
+#endif
+
+
+GstElement      * gst_parse_launch_full  (const gchar      * pipeline_description,
+                                          GstParseContext  * context,
+                                          GstParseFlags      flags,
+                                          GError          ** error);
+#ifdef __SYMBIAN32__
+IMPORT_C
+#endif
+
+
+GstElement      * gst_parse_launchv_full (const gchar     ** argv,
+                                          GstParseContext  * context,
+                                          GstParseFlags      flags,
+                                          GError          ** error);
 
 G_END_DECLS