project: Expose the ges_project_add_formatter method
authorThibault Saunier <tsaunier@igalia.com>
Tue, 5 Feb 2019 19:08:10 +0000 (16:08 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 26 Jul 2019 17:48:51 +0000 (13:48 -0400)
This method is useful when implementing a formatter outside
GES that end up converting to xges and uses the default formatter
to finally load the timeline.

ges/ges-project.c
ges/ges-project.h

index 65b1a6b..9159af1 100644 (file)
@@ -145,7 +145,16 @@ _emit_loaded_in_idle (EmitLoadedInIdle * data)
   return FALSE;
 }
 
-static void
+/**
+ * ges_project_add_formatter:
+ * @project: The project to add a formatter to
+ * @formatter: A formatter used by @project
+ *
+ * Adds a formatter as used to load @project
+ *
+ * Since: 1.18
+ */
+void
 ges_project_add_formatter (GESProject * project, GESFormatter * formatter)
 {
   GESProjectPrivate *priv = GES_PROJECT (project)->priv;
index a964835..19e5b77 100644 (file)
@@ -126,6 +126,8 @@ const GList *ges_project_list_encoding_profiles (GESProject *project);
 GES_API
 gboolean ges_add_missing_uri_relocation_uri    (const gchar * uri,
                                                 gboolean recurse);
+GES_API
+void ges_project_add_formatter (GESProject * project, GESFormatter * formatter);
 
 G_END_DECLS