pbutils: GST_EXPORT -> GST_PBUTILS_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.
This commit is contained in:
Tim-Philipp Müller 2018-03-13 11:08:34 +00:00
parent c5b5ef16d3
commit cad9759e7b
14 changed files with 218 additions and 177 deletions

View file

@ -2,6 +2,7 @@ lib_LTLIBRARIES = libgstpbutils-@GST_API_VERSION@.la
headers_pbutils = \ headers_pbutils = \
pbutils.h \ pbutils.h \
pbutils-prelude.h \
codec-utils.h \ codec-utils.h \
descriptions.h \ descriptions.h \
encoding-profile.h \ encoding-profile.h \
@ -16,7 +17,8 @@ glib_enum_headers = $(headers_pbutils)
glib_enum_define = PB_UTILS glib_enum_define = PB_UTILS
glib_gen_prefix = pbutils glib_gen_prefix = pbutils
glib_gen_basename = pbutils glib_gen_basename = pbutils
glib_gen_decl_banner=GST_EXPORT glib_gen_decl_banner=GST_PBUTILS_API
glib_gen_decl_include=\#include <gst/pbutils/pbutils-prelude.h>
built_headers_configure = \ built_headers_configure = \
gstpluginsbaseversion.h gstpluginsbaseversion.h

View file

@ -23,87 +23,88 @@
#define __GST_PB_UTILS_CODEC_UTILS_H__ #define __GST_PB_UTILS_CODEC_UTILS_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/pbutils/pbutils-prelude.h>
G_BEGIN_DECLS G_BEGIN_DECLS
/* AAC */ /* AAC */
GST_EXPORT GST_PBUTILS_API
guint gst_codec_utils_aac_get_sample_rate_from_index (guint sr_idx); guint gst_codec_utils_aac_get_sample_rate_from_index (guint sr_idx);
GST_EXPORT GST_PBUTILS_API
gint gst_codec_utils_aac_get_index_from_sample_rate (guint rate); gint gst_codec_utils_aac_get_index_from_sample_rate (guint rate);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_aac_get_profile (const guint8 * audio_config, guint len); const gchar * gst_codec_utils_aac_get_profile (const guint8 * audio_config, guint len);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_aac_get_level (const guint8 * audio_config, guint len); const gchar * gst_codec_utils_aac_get_level (const guint8 * audio_config, guint len);
GST_EXPORT GST_PBUTILS_API
guint gst_codec_utils_aac_get_sample_rate (const guint8 * audio_config, guint len); guint gst_codec_utils_aac_get_sample_rate (const guint8 * audio_config, guint len);
GST_EXPORT GST_PBUTILS_API
guint gst_codec_utils_aac_get_channels (const guint8 * audio_config, guint len); guint gst_codec_utils_aac_get_channels (const guint8 * audio_config, guint len);
GST_EXPORT GST_PBUTILS_API
gboolean gst_codec_utils_aac_caps_set_level_and_profile (GstCaps * caps, gboolean gst_codec_utils_aac_caps_set_level_and_profile (GstCaps * caps,
const guint8 * audio_config, const guint8 * audio_config,
guint len); guint len);
/* H.264 */ /* H.264 */
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_h264_get_profile (const guint8 * sps, guint len); const gchar * gst_codec_utils_h264_get_profile (const guint8 * sps, guint len);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_h264_get_level (const guint8 * sps, guint len); const gchar * gst_codec_utils_h264_get_level (const guint8 * sps, guint len);
GST_EXPORT GST_PBUTILS_API
guint8 gst_codec_utils_h264_get_level_idc (const gchar * level); guint8 gst_codec_utils_h264_get_level_idc (const gchar * level);
GST_EXPORT GST_PBUTILS_API
gboolean gst_codec_utils_h264_caps_set_level_and_profile (GstCaps * caps, gboolean gst_codec_utils_h264_caps_set_level_and_profile (GstCaps * caps,
const guint8 * sps, const guint8 * sps,
guint len); guint len);
/* H.265 */ /* H.265 */
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_h265_get_profile (const guint8 * profile_tier_level, const gchar * gst_codec_utils_h265_get_profile (const guint8 * profile_tier_level,
guint len); guint len);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_h265_get_tier (const guint8 * profile_tier_level, const gchar * gst_codec_utils_h265_get_tier (const guint8 * profile_tier_level,
guint len); guint len);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_h265_get_level (const guint8 * profile_tier_level, const gchar * gst_codec_utils_h265_get_level (const guint8 * profile_tier_level,
guint len); guint len);
GST_EXPORT GST_PBUTILS_API
guint8 gst_codec_utils_h265_get_level_idc (const gchar * level); guint8 gst_codec_utils_h265_get_level_idc (const gchar * level);
GST_EXPORT GST_PBUTILS_API
gboolean gst_codec_utils_h265_caps_set_level_tier_and_profile (GstCaps * caps, gboolean gst_codec_utils_h265_caps_set_level_tier_and_profile (GstCaps * caps,
const guint8 * profile_tier_level, const guint8 * profile_tier_level,
guint len); guint len);
/* MPEG-4 part 2 */ /* MPEG-4 part 2 */
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_mpeg4video_get_profile (const guint8 * vis_obj_seq, guint len); const gchar * gst_codec_utils_mpeg4video_get_profile (const guint8 * vis_obj_seq, guint len);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_codec_utils_mpeg4video_get_level (const guint8 * vis_obj_seq, guint len); const gchar * gst_codec_utils_mpeg4video_get_level (const guint8 * vis_obj_seq, guint len);
GST_EXPORT GST_PBUTILS_API
gboolean gst_codec_utils_mpeg4video_caps_set_level_and_profile (GstCaps * caps, gboolean gst_codec_utils_mpeg4video_caps_set_level_and_profile (GstCaps * caps,
const guint8 * vis_obj_seq, const guint8 * vis_obj_seq,
guint len); guint len);
/* Opus */ /* Opus */
GST_EXPORT GST_PBUTILS_API
gboolean gst_codec_utils_opus_parse_caps (GstCaps * caps, gboolean gst_codec_utils_opus_parse_caps (GstCaps * caps,
guint32 * rate, guint32 * rate,
guint8 * channels, guint8 * channels,
@ -112,7 +113,7 @@ gboolean gst_codec_utils_opus_parse_caps (GstCaps * caps,
guint8 * coupled_count, guint8 * coupled_count,
guint8 channel_mapping[256]); guint8 channel_mapping[256]);
GST_EXPORT GST_PBUTILS_API
GstCaps * gst_codec_utils_opus_create_caps (guint32 rate, GstCaps * gst_codec_utils_opus_create_caps (guint32 rate,
guint8 channels, guint8 channels,
guint8 channel_mapping_family, guint8 channel_mapping_family,
@ -120,10 +121,10 @@ GstCaps * gst_codec_utils_opus_create_caps (guint32 rate,
guint8 coupled_count, guint8 coupled_count,
const guint8 * channel_mapping); const guint8 * channel_mapping);
GST_EXPORT GST_PBUTILS_API
GstCaps * gst_codec_utils_opus_create_caps_from_header (GstBuffer * header, GstBuffer * comments); GstCaps * gst_codec_utils_opus_create_caps_from_header (GstBuffer * header, GstBuffer * comments);
GST_EXPORT GST_PBUTILS_API
GstBuffer * gst_codec_utils_opus_create_header (guint32 rate, GstBuffer * gst_codec_utils_opus_create_header (guint32 rate,
guint8 channels, guint8 channels,
guint8 channel_mapping_family, guint8 channel_mapping_family,
@ -133,7 +134,7 @@ GstBuffer * gst_codec_utils_opus_create_header (guint32 rate,
guint16 pre_skip, guint16 pre_skip,
gint16 output_gain); gint16 output_gain);
GST_EXPORT GST_PBUTILS_API
gboolean gst_codec_utils_opus_parse_header (GstBuffer * header, gboolean gst_codec_utils_opus_parse_header (GstBuffer * header,
guint32 * rate, guint32 * rate,
guint8 * channels, guint8 * channels,

View file

@ -22,6 +22,7 @@
#include <gst/gsttaglist.h> #include <gst/gsttaglist.h>
#include <gst/gstcaps.h> #include <gst/gstcaps.h>
#include <gst/pbutils/pbutils-prelude.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -30,12 +31,12 @@ G_BEGIN_DECLS
* from caps * from caps
*/ */
GST_EXPORT GST_PBUTILS_API
gboolean gst_pb_utils_add_codec_description_to_tag_list (GstTagList * taglist, gboolean gst_pb_utils_add_codec_description_to_tag_list (GstTagList * taglist,
const gchar * codec_tag, const gchar * codec_tag,
const GstCaps * caps); const GstCaps * caps);
GST_EXPORT GST_PBUTILS_API
gchar * gst_pb_utils_get_codec_description (const GstCaps * caps); gchar * gst_pb_utils_get_codec_description (const GstCaps * caps);
/* /*
@ -43,19 +44,19 @@ gchar * gst_pb_utils_get_codec_description (const GstCaps * caps);
* find descriptions of what exactly is missing * find descriptions of what exactly is missing
*/ */
GST_EXPORT GST_PBUTILS_API
gchar * gst_pb_utils_get_source_description (const gchar * protocol); gchar * gst_pb_utils_get_source_description (const gchar * protocol);
GST_EXPORT GST_PBUTILS_API
gchar * gst_pb_utils_get_sink_description (const gchar * protocol); gchar * gst_pb_utils_get_sink_description (const gchar * protocol);
GST_EXPORT GST_PBUTILS_API
gchar * gst_pb_utils_get_decoder_description (const GstCaps * caps); gchar * gst_pb_utils_get_decoder_description (const GstCaps * caps);
GST_EXPORT GST_PBUTILS_API
gchar * gst_pb_utils_get_encoder_description (const GstCaps * caps); gchar * gst_pb_utils_get_encoder_description (const GstCaps * caps);
GST_EXPORT GST_PBUTILS_API
gchar * gst_pb_utils_get_element_description (const gchar * factory_name); gchar * gst_pb_utils_get_element_description (const gchar * factory_name);

View file

@ -44,7 +44,7 @@ G_BEGIN_DECLS
typedef struct _GstEncodingProfile GstEncodingProfile; typedef struct _GstEncodingProfile GstEncodingProfile;
typedef struct _GstEncodingProfileClass GstEncodingProfileClass; typedef struct _GstEncodingProfileClass GstEncodingProfileClass;
GST_EXPORT GST_PBUTILS_API
GType gst_encoding_profile_get_type (void); GType gst_encoding_profile_get_type (void);
@ -63,7 +63,7 @@ GType gst_encoding_profile_get_type (void);
typedef struct _GstEncodingContainerProfile GstEncodingContainerProfile; typedef struct _GstEncodingContainerProfile GstEncodingContainerProfile;
typedef struct _GstEncodingContainerProfileClass GstEncodingContainerProfileClass; typedef struct _GstEncodingContainerProfileClass GstEncodingContainerProfileClass;
GST_EXPORT GST_PBUTILS_API
GType gst_encoding_container_profile_get_type (void); GType gst_encoding_container_profile_get_type (void);
@ -82,7 +82,7 @@ GType gst_encoding_container_profile_get_type (void);
typedef struct _GstEncodingVideoProfile GstEncodingVideoProfile; typedef struct _GstEncodingVideoProfile GstEncodingVideoProfile;
typedef struct _GstEncodingVideoProfileClass GstEncodingVideoProfileClass; typedef struct _GstEncodingVideoProfileClass GstEncodingVideoProfileClass;
GST_EXPORT GST_PBUTILS_API
GType gst_encoding_video_profile_get_type (void); GType gst_encoding_video_profile_get_type (void);
@ -101,7 +101,7 @@ GType gst_encoding_video_profile_get_type (void);
typedef struct _GstEncodingAudioProfile GstEncodingAudioProfile; typedef struct _GstEncodingAudioProfile GstEncodingAudioProfile;
typedef struct _GstEncodingAudioProfileClass GstEncodingAudioProfileClass; typedef struct _GstEncodingAudioProfileClass GstEncodingAudioProfileClass;
GST_EXPORT GST_PBUTILS_API
GType gst_encoding_audio_profile_get_type (void); GType gst_encoding_audio_profile_get_type (void);
@ -124,101 +124,101 @@ GType gst_encoding_audio_profile_get_type (void);
*/ */
#define gst_encoding_profile_ref(profile) (g_object_ref ((GObject*) profile)) #define gst_encoding_profile_ref(profile) (g_object_ref ((GObject*) profile))
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_profile_get_name (GstEncodingProfile *profile); const gchar * gst_encoding_profile_get_name (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_name (GstEncodingProfile *profile, void gst_encoding_profile_set_name (GstEncodingProfile *profile,
const gchar *name); const gchar *name);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_profile_get_description (GstEncodingProfile *profile); const gchar * gst_encoding_profile_get_description (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_description (GstEncodingProfile *profile, void gst_encoding_profile_set_description (GstEncodingProfile *profile,
const gchar *description); const gchar *description);
GST_EXPORT GST_PBUTILS_API
GstCaps * gst_encoding_profile_get_format (GstEncodingProfile *profile); GstCaps * gst_encoding_profile_get_format (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_format (GstEncodingProfile *profile, void gst_encoding_profile_set_format (GstEncodingProfile *profile,
GstCaps *format); GstCaps *format);
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_profile_get_allow_dynamic_output (GstEncodingProfile *profile); gboolean gst_encoding_profile_get_allow_dynamic_output (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_allow_dynamic_output (GstEncodingProfile *profile, void gst_encoding_profile_set_allow_dynamic_output (GstEncodingProfile *profile,
gboolean allow_dynamic_output); gboolean allow_dynamic_output);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_profile_get_preset (GstEncodingProfile *profile); const gchar * gst_encoding_profile_get_preset (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_profile_get_preset_name (GstEncodingProfile *profile); const gchar * gst_encoding_profile_get_preset_name (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_preset (GstEncodingProfile *profile, void gst_encoding_profile_set_preset (GstEncodingProfile *profile,
const gchar *preset); const gchar *preset);
GST_EXPORT GST_PBUTILS_API
guint gst_encoding_profile_get_presence (GstEncodingProfile *profile); guint gst_encoding_profile_get_presence (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_presence (GstEncodingProfile *profile, void gst_encoding_profile_set_presence (GstEncodingProfile *profile,
guint presence); guint presence);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_preset_name (GstEncodingProfile * profile, void gst_encoding_profile_set_preset_name (GstEncodingProfile * profile,
const gchar * preset_name); const gchar * preset_name);
GST_EXPORT GST_PBUTILS_API
GstCaps * gst_encoding_profile_get_restriction (GstEncodingProfile *profile); GstCaps * gst_encoding_profile_get_restriction (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_restriction (GstEncodingProfile *profile, void gst_encoding_profile_set_restriction (GstEncodingProfile *profile,
GstCaps *restriction); GstCaps *restriction);
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_profile_is_equal (GstEncodingProfile *a, gboolean gst_encoding_profile_is_equal (GstEncodingProfile *a,
GstEncodingProfile *b); GstEncodingProfile *b);
GST_EXPORT GST_PBUTILS_API
GstCaps * gst_encoding_profile_get_input_caps (GstEncodingProfile *profile); GstCaps * gst_encoding_profile_get_input_caps (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_profile_get_type_nick (GstEncodingProfile *profile); const gchar * gst_encoding_profile_get_type_nick (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_profile_get_file_extension (GstEncodingProfile * profile); const gchar * gst_encoding_profile_get_file_extension (GstEncodingProfile * profile);
GST_EXPORT GST_PBUTILS_API
GstEncodingProfile * gst_encoding_profile_find (const gchar *targetname, GstEncodingProfile * gst_encoding_profile_find (const gchar *targetname,
const gchar *profilename, const gchar *profilename,
const gchar *category); const gchar *category);
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_profile_is_enabled (GstEncodingProfile *profile); gboolean gst_encoding_profile_is_enabled (GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_profile_set_enabled (GstEncodingProfile *profile, void gst_encoding_profile_set_enabled (GstEncodingProfile *profile,
gboolean enabled); gboolean enabled);
/* GstEncodingContainerProfile API */ /* GstEncodingContainerProfile API */
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_container_profile_add_profile (GstEncodingContainerProfile *container, gboolean gst_encoding_container_profile_add_profile (GstEncodingContainerProfile *container,
GstEncodingProfile *profile); GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_container_profile_contains_profile (GstEncodingContainerProfile * container, gboolean gst_encoding_container_profile_contains_profile (GstEncodingContainerProfile * container,
GstEncodingProfile *profile); GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
const GList * gst_encoding_container_profile_get_profiles (GstEncodingContainerProfile *profile); const GList * gst_encoding_container_profile_get_profiles (GstEncodingContainerProfile *profile);
GST_EXPORT GST_PBUTILS_API
GstEncodingContainerProfile * gst_encoding_container_profile_new (const gchar *name, GstEncodingContainerProfile * gst_encoding_container_profile_new (const gchar *name,
const gchar *description, const gchar *description,
GstCaps *format, GstCaps *format,
@ -227,36 +227,36 @@ GstEncodingContainerProfile * gst_encoding_container_profile_new (const gchar *
/* Invidual stream encodingprofile API */ /* Invidual stream encodingprofile API */
GST_EXPORT GST_PBUTILS_API
GstEncodingVideoProfile * gst_encoding_video_profile_new (GstCaps *format, GstEncodingVideoProfile * gst_encoding_video_profile_new (GstCaps *format,
const gchar *preset, const gchar *preset,
GstCaps *restriction, GstCaps *restriction,
guint presence); guint presence);
GST_EXPORT GST_PBUTILS_API
GstEncodingAudioProfile * gst_encoding_audio_profile_new (GstCaps *format, GstEncodingAudioProfile * gst_encoding_audio_profile_new (GstCaps *format,
const gchar *preset, const gchar *preset,
GstCaps *restriction, GstCaps *restriction,
guint presence); guint presence);
GST_EXPORT GST_PBUTILS_API
guint gst_encoding_video_profile_get_pass (GstEncodingVideoProfile *prof); guint gst_encoding_video_profile_get_pass (GstEncodingVideoProfile *prof);
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_video_profile_get_variableframerate (GstEncodingVideoProfile *prof); gboolean gst_encoding_video_profile_get_variableframerate (GstEncodingVideoProfile *prof);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_video_profile_set_pass (GstEncodingVideoProfile *prof, void gst_encoding_video_profile_set_pass (GstEncodingVideoProfile *prof,
guint pass); guint pass);
GST_EXPORT GST_PBUTILS_API
void gst_encoding_video_profile_set_variableframerate (GstEncodingVideoProfile *prof, void gst_encoding_video_profile_set_variableframerate (GstEncodingVideoProfile *prof,
gboolean variableframerate); gboolean variableframerate);
GST_EXPORT GST_PBUTILS_API
GstEncodingProfile * gst_encoding_profile_from_discoverer (GstDiscovererInfo *info); GstEncodingProfile * gst_encoding_profile_from_discoverer (GstDiscovererInfo *info);
GST_EXPORT GST_PBUTILS_API
GstEncodingProfile * gst_encoding_profile_copy (GstEncodingProfile *self); GstEncodingProfile * gst_encoding_profile_copy (GstEncodingProfile *self);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC

View file

@ -100,7 +100,7 @@ G_BEGIN_DECLS
typedef struct _GstEncodingTarget GstEncodingTarget; typedef struct _GstEncodingTarget GstEncodingTarget;
typedef GObjectClass GstEncodingTargetClass; typedef GObjectClass GstEncodingTargetClass;
GST_EXPORT GST_PBUTILS_API
GType gst_encoding_target_get_type (void); GType gst_encoding_target_get_type (void);
/** /**
@ -121,54 +121,54 @@ GType gst_encoding_target_get_type (void);
#define gst_encoding_target_ref(target) \ #define gst_encoding_target_ref(target) \
(g_object_ref ((GObject*) target)) (g_object_ref ((GObject*) target))
GST_EXPORT GST_PBUTILS_API
GstEncodingTarget * gst_encoding_target_new (const gchar *name, GstEncodingTarget * gst_encoding_target_new (const gchar *name,
const gchar *category, const gchar *category,
const gchar *description, const gchar *description,
const GList *profiles); const GList *profiles);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_target_get_name (GstEncodingTarget *target); const gchar * gst_encoding_target_get_name (GstEncodingTarget *target);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_target_get_category (GstEncodingTarget *target); const gchar * gst_encoding_target_get_category (GstEncodingTarget *target);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_encoding_target_get_description (GstEncodingTarget *target); const gchar * gst_encoding_target_get_description (GstEncodingTarget *target);
GST_EXPORT GST_PBUTILS_API
const GList * gst_encoding_target_get_profiles (GstEncodingTarget *target); const GList * gst_encoding_target_get_profiles (GstEncodingTarget *target);
GST_EXPORT GST_PBUTILS_API
GstEncodingProfile * gst_encoding_target_get_profile (GstEncodingTarget *target, GstEncodingProfile * gst_encoding_target_get_profile (GstEncodingTarget *target,
const gchar *name); const gchar *name);
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_target_add_profile (GstEncodingTarget *target, gboolean gst_encoding_target_add_profile (GstEncodingTarget *target,
GstEncodingProfile *profile); GstEncodingProfile *profile);
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_target_save (GstEncodingTarget *target, gboolean gst_encoding_target_save (GstEncodingTarget *target,
GError **error); GError **error);
GST_EXPORT GST_PBUTILS_API
gboolean gst_encoding_target_save_to_file (GstEncodingTarget *target, gboolean gst_encoding_target_save_to_file (GstEncodingTarget *target,
const gchar *filepath, const gchar *filepath,
GError **error); GError **error);
GST_EXPORT GST_PBUTILS_API
GstEncodingTarget * gst_encoding_target_load (const gchar *name, GstEncodingTarget * gst_encoding_target_load (const gchar *name,
const gchar *category, const gchar *category,
GError **error); GError **error);
GST_EXPORT GST_PBUTILS_API
GstEncodingTarget * gst_encoding_target_load_from_file (const gchar *filepath, GstEncodingTarget * gst_encoding_target_load_from_file (const gchar *filepath,
GError **error); GError **error);
GST_EXPORT GST_PBUTILS_API
GList * gst_encoding_list_available_categories (void); GList * gst_encoding_list_available_categories (void);
GST_EXPORT GST_PBUTILS_API
GList * gst_encoding_list_all_targets (const gchar * categoryname); GList * gst_encoding_list_all_targets (const gchar * categoryname);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC

View file

@ -29,6 +29,7 @@
#include <gst/video/video.h> #include <gst/video/video.h>
#include <gst/audio/audio.h> #include <gst/audio/audio.h>
#include <gst/base/gstadapter.h> #include <gst/base/gstadapter.h>
#include <gst/pbutils/pbutils-prelude.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_AUDIO_VISUALIZER (gst_audio_visualizer_get_type()) #define GST_TYPE_AUDIO_VISUALIZER (gst_audio_visualizer_get_type())
@ -100,7 +101,7 @@ struct _GstAudioVisualizerClass
gboolean (*decide_allocation) (GstAudioVisualizer * scope, GstQuery *query); gboolean (*decide_allocation) (GstAudioVisualizer * scope, GstQuery *query);
}; };
GST_EXPORT GST_PBUTILS_API
GType gst_audio_visualizer_get_type (void); GType gst_audio_visualizer_get_type (void);
G_END_DECLS G_END_DECLS

View file

@ -22,6 +22,7 @@
#define _GST_DISCOVERER_H_ #define _GST_DISCOVERER_H_
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/pbutils/pbutils-prelude.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -34,7 +35,7 @@ G_BEGIN_DECLS
typedef struct _GstDiscovererStreamInfo GstDiscovererStreamInfo; typedef struct _GstDiscovererStreamInfo GstDiscovererStreamInfo;
typedef GObjectClass GstDiscovererStreamInfoClass; typedef GObjectClass GstDiscovererStreamInfoClass;
GST_EXPORT GST_PBUTILS_API
GType gst_discoverer_stream_info_get_type (void); GType gst_discoverer_stream_info_get_type (void);
/** /**
@ -59,28 +60,28 @@ GType gst_discoverer_stream_info_get_type (void);
#define gst_discoverer_stream_info_ref(info) ((GstDiscovererStreamInfo*) g_object_ref((GObject*) info)) #define gst_discoverer_stream_info_ref(info) ((GstDiscovererStreamInfo*) g_object_ref((GObject*) info))
#define gst_discoverer_stream_info_unref(info) (g_object_unref((GObject*) info)) #define gst_discoverer_stream_info_unref(info) (g_object_unref((GObject*) info))
GST_EXPORT GST_PBUTILS_API
GstDiscovererStreamInfo* gst_discoverer_stream_info_get_previous(GstDiscovererStreamInfo* info); GstDiscovererStreamInfo* gst_discoverer_stream_info_get_previous(GstDiscovererStreamInfo* info);
GST_EXPORT GST_PBUTILS_API
GstDiscovererStreamInfo* gst_discoverer_stream_info_get_next(GstDiscovererStreamInfo* info); GstDiscovererStreamInfo* gst_discoverer_stream_info_get_next(GstDiscovererStreamInfo* info);
GST_EXPORT GST_PBUTILS_API
GstCaps* gst_discoverer_stream_info_get_caps(GstDiscovererStreamInfo* info); GstCaps* gst_discoverer_stream_info_get_caps(GstDiscovererStreamInfo* info);
GST_EXPORT GST_PBUTILS_API
const GstTagList* gst_discoverer_stream_info_get_tags(GstDiscovererStreamInfo* info); const GstTagList* gst_discoverer_stream_info_get_tags(GstDiscovererStreamInfo* info);
GST_EXPORT GST_PBUTILS_API
const GstToc* gst_discoverer_stream_info_get_toc(GstDiscovererStreamInfo* info); const GstToc* gst_discoverer_stream_info_get_toc(GstDiscovererStreamInfo* info);
GST_EXPORT GST_PBUTILS_API
const gchar* gst_discoverer_stream_info_get_stream_id(GstDiscovererStreamInfo* info); const gchar* gst_discoverer_stream_info_get_stream_id(GstDiscovererStreamInfo* info);
GST_EXPORT GST_PBUTILS_API
const GstStructure* gst_discoverer_stream_info_get_misc(GstDiscovererStreamInfo* info); const GstStructure* gst_discoverer_stream_info_get_misc(GstDiscovererStreamInfo* info);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_discoverer_stream_info_get_stream_type_nick(GstDiscovererStreamInfo* info); const gchar * gst_discoverer_stream_info_get_stream_type_nick(GstDiscovererStreamInfo* info);
/** /**
@ -97,10 +98,10 @@ const gchar * gst_discoverer_stream_info_get_stream_type_nick(GstDisc
typedef struct _GstDiscovererContainerInfo GstDiscovererContainerInfo; typedef struct _GstDiscovererContainerInfo GstDiscovererContainerInfo;
typedef GObjectClass GstDiscovererContainerInfoClass; typedef GObjectClass GstDiscovererContainerInfoClass;
GST_EXPORT GST_PBUTILS_API
GType gst_discoverer_container_info_get_type (void); GType gst_discoverer_container_info_get_type (void);
GST_EXPORT GST_PBUTILS_API
GList *gst_discoverer_container_info_get_streams(GstDiscovererContainerInfo *info); GList *gst_discoverer_container_info_get_streams(GstDiscovererContainerInfo *info);
@ -118,28 +119,28 @@ GList *gst_discoverer_container_info_get_streams(GstDiscovererContainerInfo *inf
typedef struct _GstDiscovererAudioInfo GstDiscovererAudioInfo; typedef struct _GstDiscovererAudioInfo GstDiscovererAudioInfo;
typedef GObjectClass GstDiscovererAudioInfoClass; typedef GObjectClass GstDiscovererAudioInfoClass;
GST_EXPORT GST_PBUTILS_API
GType gst_discoverer_audio_info_get_type (void); GType gst_discoverer_audio_info_get_type (void);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_audio_info_get_channels(const GstDiscovererAudioInfo* info); guint gst_discoverer_audio_info_get_channels(const GstDiscovererAudioInfo* info);
GST_EXPORT GST_PBUTILS_API
guint64 gst_discoverer_audio_info_get_channel_mask(const GstDiscovererAudioInfo* info); guint64 gst_discoverer_audio_info_get_channel_mask(const GstDiscovererAudioInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_audio_info_get_sample_rate(const GstDiscovererAudioInfo* info); guint gst_discoverer_audio_info_get_sample_rate(const GstDiscovererAudioInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_audio_info_get_depth(const GstDiscovererAudioInfo* info); guint gst_discoverer_audio_info_get_depth(const GstDiscovererAudioInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_audio_info_get_bitrate(const GstDiscovererAudioInfo* info); guint gst_discoverer_audio_info_get_bitrate(const GstDiscovererAudioInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_audio_info_get_max_bitrate(const GstDiscovererAudioInfo* info); guint gst_discoverer_audio_info_get_max_bitrate(const GstDiscovererAudioInfo* info);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_discoverer_audio_info_get_language(const GstDiscovererAudioInfo* info); const gchar * gst_discoverer_audio_info_get_language(const GstDiscovererAudioInfo* info);
/** /**
@ -156,40 +157,40 @@ const gchar * gst_discoverer_audio_info_get_language(const GstDiscovererAudioInf
typedef struct _GstDiscovererVideoInfo GstDiscovererVideoInfo; typedef struct _GstDiscovererVideoInfo GstDiscovererVideoInfo;
typedef GObjectClass GstDiscovererVideoInfoClass; typedef GObjectClass GstDiscovererVideoInfoClass;
GST_EXPORT GST_PBUTILS_API
GType gst_discoverer_video_info_get_type (void); GType gst_discoverer_video_info_get_type (void);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_width(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_width(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_height(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_height(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_depth(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_depth(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_framerate_num(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_framerate_num(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_framerate_denom(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_framerate_denom(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_par_num(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_par_num(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_par_denom(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_par_denom(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
gboolean gst_discoverer_video_info_is_interlaced(const GstDiscovererVideoInfo* info); gboolean gst_discoverer_video_info_is_interlaced(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_bitrate(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_bitrate(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
guint gst_discoverer_video_info_get_max_bitrate(const GstDiscovererVideoInfo* info); guint gst_discoverer_video_info_get_max_bitrate(const GstDiscovererVideoInfo* info);
GST_EXPORT GST_PBUTILS_API
gboolean gst_discoverer_video_info_is_image(const GstDiscovererVideoInfo* info); gboolean gst_discoverer_video_info_is_image(const GstDiscovererVideoInfo* info);
/** /**
@ -207,10 +208,10 @@ gboolean gst_discoverer_video_info_is_image(const GstDiscovererVideoInfo*
typedef struct _GstDiscovererSubtitleInfo GstDiscovererSubtitleInfo; typedef struct _GstDiscovererSubtitleInfo GstDiscovererSubtitleInfo;
typedef GObjectClass GstDiscovererSubtitleInfoClass; typedef GObjectClass GstDiscovererSubtitleInfoClass;
GST_EXPORT GST_PBUTILS_API
GType gst_discoverer_subtitle_info_get_type (void); GType gst_discoverer_subtitle_info_get_type (void);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_discoverer_subtitle_info_get_language(const GstDiscovererSubtitleInfo* info); const gchar * gst_discoverer_subtitle_info_get_language(const GstDiscovererSubtitleInfo* info);
/** /**
@ -272,71 +273,71 @@ typedef struct _GstDiscovererInfo GstDiscovererInfo;
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER_INFO)) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DISCOVERER_INFO))
typedef GObjectClass GstDiscovererInfoClass; typedef GObjectClass GstDiscovererInfoClass;
GST_EXPORT GST_PBUTILS_API
GType gst_discoverer_info_get_type (void); GType gst_discoverer_info_get_type (void);
#define gst_discoverer_info_unref(info) (g_object_unref((GObject*)info)) #define gst_discoverer_info_unref(info) (g_object_unref((GObject*)info))
#define gst_discoverer_info_ref(info) (g_object_ref((GObject*)info)) #define gst_discoverer_info_ref(info) (g_object_ref((GObject*)info))
GST_EXPORT GST_PBUTILS_API
GstDiscovererInfo* gst_discoverer_info_copy (GstDiscovererInfo * ptr); GstDiscovererInfo* gst_discoverer_info_copy (GstDiscovererInfo * ptr);
GST_EXPORT GST_PBUTILS_API
const gchar* gst_discoverer_info_get_uri(const GstDiscovererInfo* info); const gchar* gst_discoverer_info_get_uri(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
GstDiscovererResult gst_discoverer_info_get_result(const GstDiscovererInfo* info); GstDiscovererResult gst_discoverer_info_get_result(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
GstDiscovererStreamInfo* gst_discoverer_info_get_stream_info(GstDiscovererInfo* info); GstDiscovererStreamInfo* gst_discoverer_info_get_stream_info(GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
GList* gst_discoverer_info_get_stream_list(GstDiscovererInfo* info); GList* gst_discoverer_info_get_stream_list(GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
GstClockTime gst_discoverer_info_get_duration(const GstDiscovererInfo* info); GstClockTime gst_discoverer_info_get_duration(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
gboolean gst_discoverer_info_get_seekable(const GstDiscovererInfo* info); gboolean gst_discoverer_info_get_seekable(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
gboolean gst_discoverer_info_get_live(const GstDiscovererInfo* info); gboolean gst_discoverer_info_get_live(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
const GstStructure* gst_discoverer_info_get_misc(const GstDiscovererInfo* info); const GstStructure* gst_discoverer_info_get_misc(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
const GstTagList* gst_discoverer_info_get_tags(const GstDiscovererInfo* info); const GstTagList* gst_discoverer_info_get_tags(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
const GstToc* gst_discoverer_info_get_toc(const GstDiscovererInfo* info); const GstToc* gst_discoverer_info_get_toc(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
const gchar** gst_discoverer_info_get_missing_elements_installer_details(const GstDiscovererInfo* info); const gchar** gst_discoverer_info_get_missing_elements_installer_details(const GstDiscovererInfo* info);
GST_EXPORT GST_PBUTILS_API
GList * gst_discoverer_info_get_streams (GstDiscovererInfo *info, GList * gst_discoverer_info_get_streams (GstDiscovererInfo *info,
GType streamtype); GType streamtype);
GST_EXPORT GST_PBUTILS_API
GList * gst_discoverer_info_get_audio_streams (GstDiscovererInfo *info); GList * gst_discoverer_info_get_audio_streams (GstDiscovererInfo *info);
GST_EXPORT GST_PBUTILS_API
GList * gst_discoverer_info_get_video_streams (GstDiscovererInfo *info); GList * gst_discoverer_info_get_video_streams (GstDiscovererInfo *info);
GST_EXPORT GST_PBUTILS_API
GList * gst_discoverer_info_get_subtitle_streams (GstDiscovererInfo *info); GList * gst_discoverer_info_get_subtitle_streams (GstDiscovererInfo *info);
GST_EXPORT GST_PBUTILS_API
GList * gst_discoverer_info_get_container_streams (GstDiscovererInfo *info); GList * gst_discoverer_info_get_container_streams (GstDiscovererInfo *info);
GST_EXPORT GST_PBUTILS_API
GVariant * gst_discoverer_info_to_variant (GstDiscovererInfo *info, GVariant * gst_discoverer_info_to_variant (GstDiscovererInfo *info,
GstDiscovererSerializeFlags flags); GstDiscovererSerializeFlags flags);
GST_EXPORT GST_PBUTILS_API
GstDiscovererInfo * gst_discoverer_info_from_variant (GVariant *variant); GstDiscovererInfo * gst_discoverer_info_from_variant (GVariant *variant);
GST_EXPORT GST_PBUTILS_API
void gst_discoverer_stream_info_list_free (GList *infos); void gst_discoverer_stream_info_list_free (GList *infos);
#define GST_TYPE_DISCOVERER \ #define GST_TYPE_DISCOVERER \
@ -383,27 +384,27 @@ struct _GstDiscovererClass {
gpointer _reserved[GST_PADDING]; gpointer _reserved[GST_PADDING];
}; };
GST_EXPORT GST_PBUTILS_API
GType gst_discoverer_get_type (void); GType gst_discoverer_get_type (void);
GST_EXPORT GST_PBUTILS_API
GstDiscoverer *gst_discoverer_new (GstClockTime timeout, GError **err); GstDiscoverer *gst_discoverer_new (GstClockTime timeout, GError **err);
/* Asynchronous API */ /* Asynchronous API */
GST_EXPORT GST_PBUTILS_API
void gst_discoverer_start (GstDiscoverer *discoverer); void gst_discoverer_start (GstDiscoverer *discoverer);
GST_EXPORT GST_PBUTILS_API
void gst_discoverer_stop (GstDiscoverer *discoverer); void gst_discoverer_stop (GstDiscoverer *discoverer);
GST_EXPORT GST_PBUTILS_API
gboolean gst_discoverer_discover_uri_async (GstDiscoverer *discoverer, gboolean gst_discoverer_discover_uri_async (GstDiscoverer *discoverer,
const gchar *uri); const gchar *uri);
/* Synchronous API */ /* Synchronous API */
GST_EXPORT GST_PBUTILS_API
GstDiscovererInfo * GstDiscovererInfo *
gst_discoverer_discover_uri (GstDiscoverer * discoverer, gst_discoverer_discover_uri (GstDiscoverer * discoverer,
const gchar * uri, const gchar * uri,

View file

@ -21,6 +21,7 @@
#define __GST_PLUGINS_BASE_VERSION_H__ #define __GST_PLUGINS_BASE_VERSION_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/pbutils/pbutils-prelude.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -67,10 +68,10 @@ G_BEGIN_DECLS
(GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \ (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
GST_PLUGINS_BASE_VERSION_MICRO + 1 == (micro) && GST_PLUGINS_BASE_VERSION_NANO > 0)) GST_PLUGINS_BASE_VERSION_MICRO + 1 == (micro) && GST_PLUGINS_BASE_VERSION_NANO > 0))
GST_EXPORT GST_PBUTILS_API
void gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano); void gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano);
GST_EXPORT GST_PBUTILS_API
gchar * gst_plugins_base_version_string (void); gchar * gst_plugins_base_version_string (void);
G_END_DECLS G_END_DECLS

View file

@ -22,6 +22,7 @@
#define __GST_PB_UTILS_INSTALL_PLUGINS_H__ #define __GST_PB_UTILS_INSTALL_PLUGINS_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/pbutils/pbutils-prelude.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -97,31 +98,31 @@ typedef enum {
typedef struct _GstInstallPluginsContext GstInstallPluginsContext; typedef struct _GstInstallPluginsContext GstInstallPluginsContext;
GST_EXPORT GST_PBUTILS_API
GstInstallPluginsContext * gst_install_plugins_context_new (void); GstInstallPluginsContext * gst_install_plugins_context_new (void);
GST_EXPORT GST_PBUTILS_API
GstInstallPluginsContext * gst_install_plugins_context_copy (GstInstallPluginsContext * ctx); GstInstallPluginsContext * gst_install_plugins_context_copy (GstInstallPluginsContext * ctx);
GST_EXPORT GST_PBUTILS_API
void gst_install_plugins_context_free (GstInstallPluginsContext * ctx); void gst_install_plugins_context_free (GstInstallPluginsContext * ctx);
GST_EXPORT GST_PBUTILS_API
void gst_install_plugins_context_set_confirm_search (GstInstallPluginsContext * ctx, void gst_install_plugins_context_set_confirm_search (GstInstallPluginsContext * ctx,
gboolean confirm_search); gboolean confirm_search);
GST_EXPORT GST_PBUTILS_API
void gst_install_plugins_context_set_desktop_id (GstInstallPluginsContext * ctx, void gst_install_plugins_context_set_desktop_id (GstInstallPluginsContext * ctx,
const gchar * desktop_id); const gchar * desktop_id);
GST_EXPORT GST_PBUTILS_API
void gst_install_plugins_context_set_startup_notification_id (GstInstallPluginsContext * ctx, void gst_install_plugins_context_set_startup_notification_id (GstInstallPluginsContext * ctx,
const gchar * startup_id); const gchar * startup_id);
GST_EXPORT GST_PBUTILS_API
void gst_install_plugins_context_set_xid (GstInstallPluginsContext * ctx, void gst_install_plugins_context_set_xid (GstInstallPluginsContext * ctx,
guint xid); guint xid);
GST_EXPORT GST_PBUTILS_API
GType gst_install_plugins_context_get_type (void); GType gst_install_plugins_context_get_type (void);
/** /**
@ -136,23 +137,23 @@ GType gst_install_plugins_context_get_type (void);
typedef void (*GstInstallPluginsResultFunc) (GstInstallPluginsReturn result, typedef void (*GstInstallPluginsResultFunc) (GstInstallPluginsReturn result,
gpointer user_data); gpointer user_data);
GST_EXPORT GST_PBUTILS_API
GstInstallPluginsReturn gst_install_plugins_async (const gchar * const * details, GstInstallPluginsReturn gst_install_plugins_async (const gchar * const * details,
GstInstallPluginsContext * ctx, GstInstallPluginsContext * ctx,
GstInstallPluginsResultFunc func, GstInstallPluginsResultFunc func,
gpointer user_data); gpointer user_data);
GST_EXPORT GST_PBUTILS_API
GstInstallPluginsReturn gst_install_plugins_sync (const gchar * const * details, GstInstallPluginsReturn gst_install_plugins_sync (const gchar * const * details,
GstInstallPluginsContext * ctx); GstInstallPluginsContext * ctx);
GST_EXPORT GST_PBUTILS_API
const gchar * gst_install_plugins_return_get_name (GstInstallPluginsReturn ret); const gchar * gst_install_plugins_return_get_name (GstInstallPluginsReturn ret);
GST_EXPORT GST_PBUTILS_API
gboolean gst_install_plugins_installation_in_progress (void); gboolean gst_install_plugins_installation_in_progress (void);
GST_EXPORT GST_PBUTILS_API
gboolean gst_install_plugins_supported (void); gboolean gst_install_plugins_supported (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC

View file

@ -24,6 +24,7 @@ gst_pbutils_version_h = configure_file(input : 'gstpluginsbaseversion.h.in',
pbutils_headers = [ pbutils_headers = [
'pbutils.h', 'pbutils.h',
'pbutils-prelude.h',
'codec-utils.h', 'codec-utils.h',
'descriptions.h', 'descriptions.h',
'encoding-profile.h', 'encoding-profile.h',

View file

@ -21,6 +21,7 @@
#define __GST_PB_UTILS_MISSING_PLUGINS_H__ #define __GST_PB_UTILS_MISSING_PLUGINS_H__
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/pbutils/pbutils-prelude.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -28,23 +29,23 @@ G_BEGIN_DECLS
* functions to create missing-plugin messages, for use by plugins primarily * functions to create missing-plugin messages, for use by plugins primarily
*/ */
GST_EXPORT GST_PBUTILS_API
GstMessage * gst_missing_uri_source_message_new (GstElement * element, GstMessage * gst_missing_uri_source_message_new (GstElement * element,
const gchar * protocol); const gchar * protocol);
GST_EXPORT GST_PBUTILS_API
GstMessage * gst_missing_uri_sink_message_new (GstElement * element, GstMessage * gst_missing_uri_sink_message_new (GstElement * element,
const gchar * protocol); const gchar * protocol);
GST_EXPORT GST_PBUTILS_API
GstMessage * gst_missing_element_message_new (GstElement * element, GstMessage * gst_missing_element_message_new (GstElement * element,
const gchar * factory_name); const gchar * factory_name);
GST_EXPORT GST_PBUTILS_API
GstMessage * gst_missing_decoder_message_new (GstElement * element, GstMessage * gst_missing_decoder_message_new (GstElement * element,
const GstCaps * decode_caps); const GstCaps * decode_caps);
GST_EXPORT GST_PBUTILS_API
GstMessage * gst_missing_encoder_message_new (GstElement * element, GstMessage * gst_missing_encoder_message_new (GstElement * element,
const GstCaps * encode_caps); const GstCaps * encode_caps);
@ -52,13 +53,13 @@ GstMessage * gst_missing_encoder_message_new (GstElement * element,
* functions for use by applications when dealing with missing-plugin messages * functions for use by applications when dealing with missing-plugin messages
*/ */
GST_EXPORT GST_PBUTILS_API
gchar * gst_missing_plugin_message_get_installer_detail (GstMessage * msg); gchar * gst_missing_plugin_message_get_installer_detail (GstMessage * msg);
GST_EXPORT GST_PBUTILS_API
gchar * gst_missing_plugin_message_get_description (GstMessage * msg); gchar * gst_missing_plugin_message_get_description (GstMessage * msg);
GST_EXPORT GST_PBUTILS_API
gboolean gst_is_missing_plugin_message (GstMessage * msg); gboolean gst_is_missing_plugin_message (GstMessage * msg);
@ -68,19 +69,19 @@ gboolean gst_is_missing_plugin_message (GstMessage * msg);
* missing-plugin messages posted by elements such as playbin or decodebin * missing-plugin messages posted by elements such as playbin or decodebin
*/ */
GST_EXPORT GST_PBUTILS_API
gchar * gst_missing_uri_source_installer_detail_new (const gchar * protocol); gchar * gst_missing_uri_source_installer_detail_new (const gchar * protocol);
GST_EXPORT GST_PBUTILS_API
gchar * gst_missing_uri_sink_installer_detail_new (const gchar * protocol); gchar * gst_missing_uri_sink_installer_detail_new (const gchar * protocol);
GST_EXPORT GST_PBUTILS_API
gchar * gst_missing_element_installer_detail_new (const gchar * factory_name); gchar * gst_missing_element_installer_detail_new (const gchar * factory_name);
GST_EXPORT GST_PBUTILS_API
gchar * gst_missing_decoder_installer_detail_new (const GstCaps * decode_caps); gchar * gst_missing_decoder_installer_detail_new (const GstCaps * decode_caps);
GST_EXPORT GST_PBUTILS_API
gchar * gst_missing_encoder_installer_detail_new (const GstCaps * encode_caps); gchar * gst_missing_encoder_installer_detail_new (const GstCaps * encode_caps);
G_END_DECLS G_END_DECLS

View file

@ -0,0 +1,31 @@
/* GStreamer Plugins Base Utils Library
* Copyright (C) 2018 GStreamer developers
*
* pbutils-prelude.h: prelude include header for gst-pbutils library
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_PBUTILS_PRELUDE_H__
#define __GST_PBUTILS_PRELUDE_H__
#include <gst/gst.h>
#ifndef GST_PBUTILS_API
#define GST_PBUTILS_API GST_EXPORT
#endif
#endif /* __GST_PBUTILS_PRELUDE_H__ */

View file

@ -34,7 +34,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_EXPORT GST_PBUTILS_API
void gst_pb_utils_init (void); void gst_pb_utils_init (void);
G_END_DECLS G_END_DECLS

View file

@ -8,11 +8,11 @@
import sys, os, shutil, subprocess import sys, os, shutil, subprocess
h_array = ['--fhead', h_array = ['--fhead',
"#ifndef __PB_UTILS_ENUM_TYPES_H__\n#define __PB_UTILS_ENUM_TYPES_H__\n\n#include <gst/gst.h>\n\nG_BEGIN_DECLS\n", "#ifndef __PB_UTILS_ENUM_TYPES_H__\n#define __PB_UTILS_ENUM_TYPES_H__\n\n#include <gst/gst.h>\n#include <gst/pbutils/pbutils-prelude.h>\nG_BEGIN_DECLS\n",
'--fprod', '--fprod',
"\n/* enumerations from \"@filename@\" */\n", "\n/* enumerations from \"@filename@\" */\n",
'--vhead', '--vhead',
"GST_EXPORT GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n", "GST_PBUTILS_API GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n",
'--ftail', '--ftail',
"G_END_DECLS\n\n#endif /* __PB_UTILS_ENUM_TYPES_H__ */" "G_END_DECLS\n\n#endif /* __PB_UTILS_ENUM_TYPES_H__ */"
] ]