diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2011-08-11 12:04:31 +0200 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2011-08-13 18:48:06 +0100 |
commit | 06517d80cb6e1eb1a189b692d4e6fa6c43cf204c (patch) | |
tree | 7b9b1c20e082e4f43005d43c7d340eb985d2bc1b /src | |
parent | 229399c662fb9d457cd612a444fe561dac36a98e (diff) | |
download | totem-06517d80cb6e1eb1a189b692d4e6fa6c43cf204c.tar.gz |
data: Export supported URI schemes in a header file
Diffstat (limited to 'src')
-rw-r--r-- | src/totem-object.c | 31 | ||||
-rw-r--r-- | src/totem.h | 3 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/totem-object.c b/src/totem-object.c index f91fe6729..7cbeac57c 100644 --- a/src/totem-object.c +++ b/src/totem-object.c @@ -70,6 +70,9 @@ #include "totem-dnd-menu.h" #include "totem-preferences.h" +#include "totem-mime-types.h" +#include "totem-uri-schemes.h" + #define REWIND_OR_PREVIOUS 4000 #define SEEK_FORWARD_SHORT_OFFSET 15 @@ -4299,3 +4302,31 @@ video_widget_create (TotemObject *totem) G_CALLBACK (property_notify_cb_seekable), totem); update_volume_sliders (totem); } + +/** + * totem_object_get_supported_content_types: + * + * Get the full list of file content types which Totem supports playing. + * + * Return value: (array zero-terminated=1) (transfer none): a %NULL-terminated array of the content types Totem supports + * Since: 3.1.5 + */ +const gchar * const * +totem_object_get_supported_content_types (void) +{ + return mime_types; +} + +/** + * totem_object_get_supported_uri_schemes: + * + * Get the full list of URI schemes which Totem supports accessing. + * + * Return value: (array zero-terminated=1) (transfer none): a %NULL-terminated array of the URI schemes Totem supports + * Since: 3.1.5 + */ +const gchar * const * +totem_object_get_supported_uri_schemes (void) +{ + return uri_schemes; +} diff --git a/src/totem.h b/src/totem.h index 4a24fa056..6294781cf 100644 --- a/src/totem.h +++ b/src/totem.h @@ -304,4 +304,7 @@ void totem_object_action_remote_set_setting (TotemObject *totem, gboolean totem_object_action_remote_get_setting (TotemObject *totem, TotemRemoteSetting setting); +const gchar * const *totem_object_get_supported_content_types (void); +const gchar * const *totem_object_get_supported_uri_schemes (void); + #endif /* __TOTEM_H__ */ |