Added gst-plugins-base-subtitles0.10-0.10.34 for Meego Harmattan 1.2
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / gst-libs / gst / pbutils / missing-plugins.h
1 /* GStreamer base utils library missing plugins support
2  * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
3  *
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.
8  *
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.
13  *
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., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GST_PB_UTILS_MISSING_PLUGINS_H__
21 #define __GST_PB_UTILS_MISSING_PLUGINS_H__
22
23 #include <gst/gstmessage.h>
24 #include <gst/gstcaps.h>
25
26 G_BEGIN_DECLS
27
28 /*
29  * functions to create missing-plugin messages, for use by plugins primarily
30  */
31
32 GstMessage * gst_missing_uri_source_message_new (GstElement    * element,
33                                                  const gchar   * protocol);
34
35 GstMessage * gst_missing_uri_sink_message_new   (GstElement    * element,
36                                                  const gchar   * protocol);
37
38 GstMessage * gst_missing_element_message_new    (GstElement    * element,
39                                                  const gchar   * factory_name);
40
41 GstMessage * gst_missing_decoder_message_new    (GstElement    * element,
42                                                  const GstCaps * decode_caps);
43
44 GstMessage * gst_missing_encoder_message_new    (GstElement    * element,
45                                                  const GstCaps * encode_caps);
46
47 /*
48  * functions for use by applications when dealing with missing-plugin messages
49  */
50
51 gchar       * gst_missing_plugin_message_get_installer_detail (GstMessage * msg);
52
53 gchar       * gst_missing_plugin_message_get_description (GstMessage * msg);
54
55 gboolean      gst_is_missing_plugin_message (GstMessage * msg);
56
57
58 /*
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
62  */
63
64 gchar * gst_missing_uri_source_installer_detail_new (const gchar * protocol);
65
66 gchar * gst_missing_uri_sink_installer_detail_new (const gchar * protocol);
67
68 gchar * gst_missing_element_installer_detail_new (const gchar * factory_name);
69
70 gchar * gst_missing_decoder_installer_detail_new (const GstCaps * decode_caps);
71
72 gchar * gst_missing_encoder_installer_detail_new (const GstCaps * encode_caps);
73
74 G_END_DECLS
75
76 #endif /* __GST_PB_UTILS_MISSING_PLUGINS_H__ */
77