From: Guenter B. <gu...@us...> - 2002-10-25 09:24:38
|
Update of /cvsroot/xine/gnome-xine/src In directory usw-pr-cvs1:/tmp/cvs-serv17735/src Modified Files: gtkxine.c gtkxine.h Log Message: add new get_file_extensions and get_mime_types functions to gtkxine widget Index: gtkxine.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/gtkxine.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- gtkxine.c 24 Oct 2002 23:51:11 -0000 1.30 +++ gtkxine.c 25 Oct 2002 00:04:10 -0000 1.31 @@ -850,6 +850,24 @@ return (gchar **) xine_get_autoplay_mrls (gtx->xine, plugin_id, num_mrls); } +gchar *gtk_xine_get_file_extensions (GtkXine *gtx) { + + g_return_val_if_fail (gtx != NULL, NULL); + g_return_val_if_fail (GTK_IS_XINE (gtx), NULL); + g_return_val_if_fail (gtx->xine != NULL, NULL); + + return (gchar *) xine_get_file_extensions (gtx->xine); +} + +gchar *gtk_xine_get_mime_types (GtkXine *gtx) { + + g_return_val_if_fail (gtx != NULL, NULL); + g_return_val_if_fail (GTK_IS_XINE (gtx), NULL); + g_return_val_if_fail (gtx->xine != NULL, NULL); + + return (gchar *) xine_get_mime_types (gtx->xine); +} + int gtk_xine_config_get_first_entry (GtkXine *gtx, xine_cfg_entry_t *entry) { g_return_val_if_fail (gtx != NULL, 0); g_return_val_if_fail (GTK_IS_XINE (gtx), 0); Index: gtkxine.h =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/gtkxine.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- gtkxine.h 15 Oct 2002 23:50:59 -0000 1.16 +++ gtkxine.h 25 Oct 2002 00:04:10 -0000 1.17 @@ -149,6 +149,8 @@ gchar **gtk_xine_get_autoplay_mrls (GtkXine *gtx, const gchar *plugin_id, gint *num_mrls); + gchar *gtk_xine_get_file_extensions (GtkXine *gtx); + gchar *gtk_xine_get_mime_types (GtkXine *gtx); int gtk_xine_config_get_first_entry (GtkXine *gtx, xine_cfg_entry_t *entry); int gtk_xine_config_get_next_entry (GtkXine *gtx, xine_cfg_entry_t *entry); |