1 /* GStreamer base utils library missing plugins support
2 * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #ifndef __GST_PB_UTILS_MISSING_PLUGINS_H__
21 #define __GST_PB_UTILS_MISSING_PLUGINS_H__
23 #include <gst/gstmessage.h>
24 #include <gst/gstcaps.h>
29 * functions to create missing-plugin messages, for use by plugins primarily
32 GstMessage * gst_missing_uri_source_message_new (GstElement * element,
33 const gchar * protocol);
35 GstMessage * gst_missing_uri_sink_message_new (GstElement * element,
36 const gchar * protocol);
38 GstMessage * gst_missing_element_message_new (GstElement * element,
39 const gchar * factory_name);
41 GstMessage * gst_missing_decoder_message_new (GstElement * element,
42 const GstCaps * decode_caps);
44 GstMessage * gst_missing_encoder_message_new (GstElement * element,
45 const GstCaps * encode_caps);
48 * functions for use by applications when dealing with missing-plugin messages
51 gchar * gst_missing_plugin_message_get_installer_detail (GstMessage * msg);
53 gchar * gst_missing_plugin_message_get_description (GstMessage * msg);
55 gboolean gst_is_missing_plugin_message (GstMessage * msg);
59 * functions for use by applications that know exactly what plugins they are
60 * missing and want to request them directly rather than just react to
61 * missing-plugin messages posted by elements such as playbin or decodebin
64 gchar * gst_missing_uri_source_installer_detail_new (const gchar * protocol);
66 gchar * gst_missing_uri_sink_installer_detail_new (const gchar * protocol);
68 gchar * gst_missing_element_installer_detail_new (const gchar * factory_name);
70 gchar * gst_missing_decoder_installer_detail_new (const GstCaps * decode_caps);
72 gchar * gst_missing_encoder_installer_detail_new (const GstCaps * encode_caps);
76 #endif /* __GST_PB_UTILS_MISSING_PLUGINS_H__ */