<title>Serialization Classes</title>
<xi:include href="xml/ges-formatter.xml"/>
<xi:include href="xml/ges-keyfile-formatter.xml"/>
+ <xi:include href="xml/ges-pitivi-formatter.xml"/>
</chapter>
<chapter id="ges-hierarchy">
ges_keyfile_formatter_get_type
</SECTION>
+<SECTION>
+<FILE>ges-pitivi-formatter</FILE>
+<TITLE>GESPitiviFormatter</TITLE>
+GESPitiviFormatter
+ges_pitivi_formatter_new
+ges_pitivi_formatter_set_sources
+ges_pitivi_formatter_get_sources
+<SUBSECTION Standard>
+GESPitiviFormatterClass
+GES_IS_PITIVI_FORMATTER
+GES_IS_PITIVI_FORMATTER_CLASS
+GES_PITIVI_FORMATTER
+GES_PITIVI_FORMATTER_CLASS
+GES_PITIVI_FORMATTER_GET_CLASS
+GES_TYPE_PITIVIFORMATTER
+ges_pitivi_formatter_get_type
+</SECTION>
+
<SECTION>
<FILE>ges-track-effect</FILE>
<TITLE>GESTrackEffect</TITLE>
return TRUE;
}
-GList *
-ges_pitivi_formatter_get_sources (GESPitiviFormatter * formatter)
-{
- GList *sources = NULL;
- GHashTableIter iter;
- gpointer key, value;
-
- g_hash_table_iter_init (&iter, formatter->priv->source_uris);
- while (g_hash_table_iter_next (&iter, &key, &value)) {
- sources = g_list_prepend (sources, g_strdup (value));
- }
-
- return sources;
-}
-
/* Project loading functions */
/* Return: a GHashTable containing:
return ret;
}
-/* API */
+/* API */
+
+/**
+ * ges_pitivi_formatter_set_sources:
+ * @formatter: The #GESPitiviFormatter to set sources on
+ * @infos: (transfer none): (element-type GstDiscovererInfo):
+ * The #GstDiscovererInfo infos to add as sources.
+ *
+ * Add @infos as the formatter sources so we can save sources that are
+ * not in the timeline when saving.
+ *
+ * Returns: %TRUE if everything wen fine, %FALSE otherwise
+ */
gboolean
ges_pitivi_formatter_set_sources (GESPitiviFormatter * formatter, GList * infos)
{
return TRUE;
}
+
+/**
+ * ges_pitivi_formatter_get_sources:
+ * @formatter: The #GESPitiviFormatter to get sources from
+ *
+ * Returns: (transfer full): (element-type utf8): %TRUE if everything went
+ * fine, %FALSE otherwise
+ */
+GList *
+ges_pitivi_formatter_get_sources (GESPitiviFormatter * formatter)
+{
+ GList *sources = NULL;
+ GHashTableIter iter;
+ gpointer key, value;
+
+ g_hash_table_iter_init (&iter, formatter->priv->source_uris);
+ while (g_hash_table_iter_next (&iter, &key, &value)) {
+ sources = g_list_prepend (sources, g_strdup (value));
+ }
+
+ return sources;
+}
GESPitiviFormatter *ges_pitivi_formatter_new (void);
-gboolean ges_pitivi_formatter_set_sources (GESPitiviFormatter * formatter, GList * uris);
+gboolean ges_pitivi_formatter_set_sources (GESPitiviFormatter * formatter, GList * infos);
GList * ges_pitivi_formatter_get_sources(GESPitiviFormatter * formatter);