From 3d1c00fbcd6a0d2b45bfffe8300479c65376075a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 13 Mar 2018 13:45:24 +0000 Subject: [PATCH] ges: GST_EXPORT -> GST_GES_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. --- docs/libs/meson.build | 2 +- ges/Makefile.am | 1 + ges/ges-asset.h | 30 ++++++------- ges/ges-audio-source.h | 2 +- ges/ges-audio-test-source.h | 10 ++--- ges/ges-audio-track.h | 4 +- ges/ges-audio-transition.h | 4 +- ges/ges-audio-uri-source.h | 2 +- ges/ges-base-effect-clip.h | 2 +- ges/ges-base-effect.h | 2 +- ges/ges-base-transition-clip.h | 2 +- ges/ges-base-xml-formatter.h | 2 +- ges/ges-clip-asset.h | 6 +-- ges/ges-clip.h | 28 ++++++------ ges/ges-command-line-formatter.h | 4 +- ges/ges-container.h | 14 +++--- ges/ges-effect-asset.h | 2 +- ges/ges-effect-clip.h | 4 +- ges/ges-effect.h | 6 +-- ges/ges-enums.h | 21 ++++----- ges/ges-extractable.h | 8 ++-- ges/ges-formatter.h | 14 +++--- ges/ges-group.h | 4 +- ges/ges-image-source.h | 2 +- ges/ges-internal.h | 4 +- ges/ges-layer.h | 30 ++++++------- ges/ges-meta-container.h | 76 ++++++++++++++++---------------- ges/ges-multi-file-source.h | 4 +- ges/ges-operation-clip.h | 2 +- ges/ges-operation.h | 2 +- ges/ges-overlay-clip.h | 2 +- ges/ges-pipeline.h | 26 +++++------ ges/ges-pitivi-formatter.h | 4 +- ges/ges-prelude.h | 31 +++++++++++++ ges/ges-project.h | 30 ++++++------- ges/ges-screenshot.h | 3 +- ges/ges-smart-adder.h | 4 +- ges/ges-source-clip.h | 2 +- ges/ges-source.h | 2 +- ges/ges-test-clip.h | 22 ++++----- ges/ges-text-overlay-clip.h | 32 +++++++------- ges/ges-text-overlay.h | 32 +++++++------- ges/ges-timeline-element.h | 76 ++++++++++++++++---------------- ges/ges-timeline.h | 52 +++++++++++----------- ges/ges-title-clip.h | 36 +++++++-------- ges/ges-title-source.h | 34 +++++++------- ges/ges-track-element-asset.h | 6 +-- ges/ges-track-element.h | 50 ++++++++++----------- ges/ges-track.h | 28 ++++++------ ges/ges-transition-clip.h | 6 +-- ges/ges-transition.h | 2 +- ges/ges-types.h | 1 + ges/ges-uri-asset.h | 24 +++++----- ges/ges-uri-clip.h | 14 +++--- ges/ges-utils.h | 6 +-- ges/ges-video-source.h | 2 +- ges/ges-video-test-source.h | 6 +-- ges/ges-video-track.h | 4 +- ges/ges-video-transition.h | 16 +++---- ges/ges-video-uri-source.h | 2 +- ges/ges-xml-formatter.h | 2 +- ges/ges.h | 14 +++--- ges/meson.build | 1 + 63 files changed, 452 insertions(+), 414 deletions(-) create mode 100644 ges/ges-prelude.h diff --git a/docs/libs/meson.build b/docs/libs/meson.build index a4d6f39a89..e787fb98b8 100644 --- a/docs/libs/meson.build +++ b/docs/libs/meson.build @@ -20,7 +20,7 @@ gnome.gtkdoc('ges', main_sgml : 'ges-docs.sgml', src_dir : '@0@/../../ges'.format(meson.current_source_dir()), scan_args : ['--deprecated-guards=GST_DISABLE_DEPRECATED', - '--ignore-decorators=GST_EXPORT', + '--ignore-decorators=GES_API', '--ignore-headers=gesmarshal.h ges-internal.h ges-auto-transition.h ges-structured-interface.h ges-structure-parser.h ges-smart-video-mixer.h gstframepositioner.h' ], scanobjs_args : ['--type-init-func="gst_init(NULL,NULL)"'], diff --git a/ges/Makefile.am b/ges/Makefile.am index cdd2c08617..797a740163 100644 --- a/ges/Makefile.am +++ b/ges/Makefile.am @@ -84,6 +84,7 @@ libges_@GST_API_VERSION@include_HEADERS = \ $(built_header_make) \ ges-types.h \ ges.h \ + ges-prelude.h \ ges-enums.h \ ges-gerror.h \ ges-meta-container.h \ diff --git a/ges/ges-asset.h b/ges/ges-asset.h index 1c2982893b..ecfc6b91f2 100644 --- a/ges/ges-asset.h +++ b/ges/ges-asset.h @@ -51,7 +51,7 @@ typedef enum typedef struct _GESAssetPrivate GESAssetPrivate; -GST_EXPORT +GST_GES_API GType ges_asset_get_type (void); struct _GESAsset @@ -89,43 +89,43 @@ struct _GESAssetClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_asset_get_extractable_type (GESAsset * self); -GST_EXPORT +GST_GES_API void ges_asset_request_async (GType extractable_type, const gchar * id, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); -GST_EXPORT +GST_GES_API GESAsset * ges_asset_request (GType extractable_type, const gchar * id, GError **error); -GST_EXPORT +GST_GES_API const gchar * ges_asset_get_id (GESAsset* self); -GST_EXPORT +GST_GES_API GESAsset * ges_asset_request_finish (GAsyncResult *res, GError **error); -GST_EXPORT +GST_GES_API GError * ges_asset_get_error (GESAsset * self); -GST_EXPORT +GST_GES_API GESExtractable * ges_asset_extract (GESAsset * self, GError **error); -GST_EXPORT +GST_GES_API GList * ges_list_assets (GType filter); -GST_EXPORT +GST_GES_API gboolean ges_asset_set_proxy (GESAsset *asset, GESAsset *proxy); -GST_EXPORT +GST_GES_API gboolean ges_asset_unproxy (GESAsset *asset, GESAsset * proxy); -GST_EXPORT +GST_GES_API GList * ges_asset_list_proxies (GESAsset *asset); -GST_EXPORT +GST_GES_API GESAsset * ges_asset_get_proxy_target(GESAsset *proxy); -GST_EXPORT +GST_GES_API GESAsset * ges_asset_get_proxy (GESAsset *asset); -GST_EXPORT +GST_GES_API gboolean ges_asset_needs_reload (GType extractable_type, const gchar * id); diff --git a/ges/ges-audio-source.h b/ges/ges-audio-source.h index cb536453a1..61a8aba3cb 100644 --- a/ges/ges-audio-source.h +++ b/ges/ges-audio-source.h @@ -83,7 +83,7 @@ struct _GESAudioSourceClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_audio_source_get_type (void); G_END_DECLS diff --git a/ges/ges-audio-test-source.h b/ges/ges-audio-test-source.h index 80e27cca5f..a66fa8d7cd 100644 --- a/ges/ges-audio-test-source.h +++ b/ges/ges-audio-test-source.h @@ -70,21 +70,21 @@ struct _GESAudioTestSourceClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_audio_test_source_get_type (void); -GST_EXPORT +GST_GES_API void ges_audio_test_source_set_freq(GESAudioTestSource *self, gdouble freq); -GST_EXPORT +GST_GES_API void ges_audio_test_source_set_volume(GESAudioTestSource *self, gdouble volume); -GST_EXPORT +GST_GES_API double ges_audio_test_source_get_freq(GESAudioTestSource *self); -GST_EXPORT +GST_GES_API double ges_audio_test_source_get_volume(GESAudioTestSource *self); G_END_DECLS diff --git a/ges/ges-audio-track.h b/ges/ges-audio-track.h index 333b1522d9..3767f1b4b9 100644 --- a/ges/ges-audio-track.h +++ b/ges/ges-audio-track.h @@ -54,9 +54,9 @@ struct _GESAudioTrack gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_audio_track_get_type (void) G_GNUC_CONST; -GST_EXPORT +GST_GES_API GESAudioTrack* ges_audio_track_new (void); G_END_DECLS diff --git a/ges/ges-audio-transition.h b/ges/ges-audio-transition.h index 430eb97041..2b8d7d9749 100644 --- a/ges/ges-audio-transition.h +++ b/ges/ges-audio-transition.h @@ -68,10 +68,10 @@ struct _GESAudioTransitionClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_audio_transition_get_type (void); -GST_EXPORT +GST_GES_API GESAudioTransition* ges_audio_transition_new (void); G_END_DECLS diff --git a/ges/ges-audio-uri-source.h b/ges/ges-audio-uri-source.h index 798483a63e..71767ddd29 100644 --- a/ges/ges-audio-uri-source.h +++ b/ges/ges-audio-uri-source.h @@ -69,7 +69,7 @@ struct _GESAudioUriSourceClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_audio_uri_source_get_type (void); G_END_DECLS diff --git a/ges/ges-base-effect-clip.h b/ges/ges-base-effect-clip.h index 7863d474ea..db1fa955dc 100644 --- a/ges/ges-base-effect-clip.h +++ b/ges/ges-base-effect-clip.h @@ -70,7 +70,7 @@ struct _GESBaseEffectClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_base_effect_clip_get_type (void); G_END_DECLS diff --git a/ges/ges-base-effect.h b/ges/ges-base-effect.h index f208f9162b..4d687dfe9f 100644 --- a/ges/ges-base-effect.h +++ b/ges/ges-base-effect.h @@ -68,7 +68,7 @@ struct _GESBaseEffectClass }; -GST_EXPORT +GST_GES_API GType ges_base_effect_get_type (void); G_END_DECLS diff --git a/ges/ges-base-transition-clip.h b/ges/ges-base-transition-clip.h index c6f11ae54c..22ffd439e4 100644 --- a/ges/ges-base-transition-clip.h +++ b/ges/ges-base-transition-clip.h @@ -74,7 +74,7 @@ struct _GESBaseTransitionClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_base_transition_clip_get_type (void); G_END_DECLS diff --git a/ges/ges-base-xml-formatter.h b/ges/ges-base-xml-formatter.h index 960b28059c..c9eb73b25b 100644 --- a/ges/ges-base-xml-formatter.h +++ b/ges/ges-base-xml-formatter.h @@ -64,7 +64,7 @@ struct _GESBaseXmlFormatterClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_base_xml_formatter_get_type (void); G_END_DECLS diff --git a/ges/ges-clip-asset.h b/ges/ges-clip-asset.h index 1146e7e26e..e704a80f87 100644 --- a/ges/ges-clip-asset.h +++ b/ges/ges-clip-asset.h @@ -55,12 +55,12 @@ struct _GESClipAssetClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_clip_asset_get_type (void); -GST_EXPORT +GST_GES_API void ges_clip_asset_set_supported_formats (GESClipAsset *self, GESTrackType supportedformats); -GST_EXPORT +GST_GES_API GESTrackType ges_clip_asset_get_supported_formats (GESClipAsset *self); G_END_DECLS diff --git a/ges/ges-clip.h b/ges/ges-clip.h index 0873736204..eedf4ca5d2 100644 --- a/ges/ges-clip.h +++ b/ges/ges-clip.h @@ -137,53 +137,53 @@ struct _GESClipClass /**************************************************** * Standard * ****************************************************/ -GST_EXPORT +GST_GES_API GType ges_clip_get_type (void); /**************************************************** * TrackElement handling * ****************************************************/ -GST_EXPORT +GST_GES_API GESTrackType ges_clip_get_supported_formats (GESClip *clip); -GST_EXPORT +GST_GES_API void ges_clip_set_supported_formats (GESClip *clip, GESTrackType supportedformats); -GST_EXPORT +GST_GES_API GESTrackElement* ges_clip_add_asset (GESClip *clip, GESAsset *asset); -GST_EXPORT +GST_GES_API GESTrackElement* ges_clip_find_track_element (GESClip *clip, GESTrack *track, GType type); -GST_EXPORT +GST_GES_API GList * ges_clip_find_track_elements (GESClip * clip, GESTrack * track, GESTrackType track_type, GType type); /**************************************************** * Layer * ****************************************************/ -GST_EXPORT +GST_GES_API GESLayer* ges_clip_get_layer (GESClip *clip); -GST_EXPORT +GST_GES_API gboolean ges_clip_move_to_layer (GESClip *clip, GESLayer *layer); /**************************************************** * Effects * ****************************************************/ -GST_EXPORT +GST_GES_API GList* ges_clip_get_top_effects (GESClip *clip); -GST_EXPORT +GST_GES_API gint ges_clip_get_top_effect_position (GESClip *clip, GESBaseEffect *effect); -GST_EXPORT +GST_GES_API gint ges_clip_get_top_effect_index (GESClip *clip, GESBaseEffect *effect); -GST_EXPORT +GST_GES_API gboolean ges_clip_set_top_effect_priority (GESClip *clip, GESBaseEffect *effect, guint newpriority); -GST_EXPORT +GST_GES_API gboolean ges_clip_set_top_effect_index (GESClip *clip, GESBaseEffect *effect, guint newindex); /**************************************************** * Editing * ****************************************************/ -GST_EXPORT +GST_GES_API GESClip* ges_clip_split (GESClip *clip, guint64 position); G_END_DECLS diff --git a/ges/ges-command-line-formatter.h b/ges/ges-command-line-formatter.h index 52ca29bf56..9033f5dfbf 100644 --- a/ges/ges-command-line-formatter.h +++ b/ges/ges-command-line-formatter.h @@ -50,9 +50,9 @@ struct _GESCommandLineFormatter GESCommandLineFormatterPrivate *priv; }; -GST_EXPORT +GST_GES_API GType ges_command_line_formatter_get_type (void); -GST_EXPORT +GST_GES_API gchar * ges_command_line_formatter_get_help (gint nargs, gchar ** commands); G_END_DECLS diff --git a/ges/ges-container.h b/ges/ges-container.h index aedfd91f3d..6673bff8c9 100644 --- a/ges/ges-container.h +++ b/ges/ges-container.h @@ -134,22 +134,22 @@ struct _GESContainerClass gpointer _ges_reserved[GES_PADDING_LARGE]; }; -GST_EXPORT +GST_GES_API GType ges_container_get_type (void); /* Children handling */ -GST_EXPORT +GST_GES_API GList* ges_container_get_children (GESContainer *container, gboolean recursive); -GST_EXPORT +GST_GES_API gboolean ges_container_add (GESContainer *container, GESTimelineElement *child); -GST_EXPORT +GST_GES_API gboolean ges_container_remove (GESContainer *container, GESTimelineElement *child); -GST_EXPORT +GST_GES_API GList * ges_container_ungroup (GESContainer * container, gboolean recursive); -GST_EXPORT +GST_GES_API GESContainer *ges_container_group (GList *containers); -GST_EXPORT +GST_GES_API gboolean ges_container_edit (GESContainer * container, GList * layers, gint new_layer_priority, GESEditMode mode, diff --git a/ges/ges-effect-asset.h b/ges/ges-effect-asset.h index 3e252a45a7..93117a26fb 100644 --- a/ges/ges-effect-asset.h +++ b/ges/ges-effect-asset.h @@ -54,7 +54,7 @@ struct _GESEffectAsset gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_effect_asset_get_type (void) G_GNUC_CONST; G_END_DECLS diff --git a/ges/ges-effect-clip.h b/ges/ges-effect-clip.h index 8043b33852..f00dc2d452 100644 --- a/ges/ges-effect-clip.h +++ b/ges/ges-effect-clip.h @@ -70,10 +70,10 @@ struct _GESEffectClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_effect_clip_get_type (void); -GST_EXPORT GESEffectClip * +GST_GES_API GESEffectClip * ges_effect_clip_new (const gchar * video_bin_description, const gchar * audio_bin_description); diff --git a/ges/ges-effect.h b/ges/ges-effect.h index 53483d92ed..9e8f99610b 100644 --- a/ges/ges-effect.h +++ b/ges/ges-effect.h @@ -76,13 +76,13 @@ struct _GESEffectClass }; -GST_EXPORT +GST_GES_API GType ges_effect_get_type (void); -GST_EXPORT GESEffect* +GST_GES_API GESEffect* ges_effect_new (const gchar * bin_description); -GST_EXPORT gboolean +GST_GES_API gboolean ges_effect_class_register_rate_property (GESEffectClass *klass, const gchar *element_name, const gchar *property_name); G_END_DECLS diff --git a/ges/ges-enums.h b/ges/ges-enums.h index c5b149786e..7cd03c2712 100644 --- a/ges/ges-enums.h +++ b/ges/ges-enums.h @@ -22,11 +22,12 @@ #define __GES_ENUMS_H__ #include +#include G_BEGIN_DECLS #define GES_TYPE_TRACK_TYPE (ges_track_type_get_type ()) -GST_EXPORT +GST_GES_API GType ges_track_type_get_type (void); /** @@ -54,7 +55,7 @@ typedef enum { } GESTrackType; #define GES_META_FLAG_TYPE (ges_meta_flag_get_type ()) -GST_EXPORT +GST_GES_API GType ges_meta_flag_get_type (void); /** @@ -224,7 +225,7 @@ typedef enum { #define GES_VIDEO_STANDARD_TRANSITION_TYPE_TYPE \ (ges_video_standard_transition_type_get_type()) -GST_EXPORT +GST_GES_API GType ges_video_standard_transition_type_get_type (void); /** @@ -251,7 +252,7 @@ typedef enum { #define GES_TEXT_VALIGN_TYPE\ (ges_text_valign_get_type ()) -GST_EXPORT +GST_GES_API GType ges_text_valign_get_type (void); /** @@ -276,7 +277,7 @@ typedef enum { #define GES_TEXT_HALIGN_TYPE\ (ges_text_halign_get_type ()) -GST_EXPORT +GST_GES_API GType ges_text_halign_get_type (void); /** @@ -328,7 +329,7 @@ typedef enum { #define GES_VIDEO_TEST_PATTERN_TYPE\ ges_video_test_pattern_get_type() -GST_EXPORT +GST_GES_API GType ges_video_test_pattern_get_type (void); /** @@ -352,7 +353,7 @@ typedef enum { #define GES_TYPE_PIPELINE_FLAGS\ ges_pipeline_flags_get_type() -GST_EXPORT +GST_GES_API GType ges_pipeline_flags_get_type (void); /** @@ -393,7 +394,7 @@ typedef enum { #define GES_TYPE_EDIT_MODE ges_edit_mode_get_type() -GST_EXPORT +GST_GES_API GType ges_edit_mode_get_type (void); /** @@ -413,11 +414,11 @@ typedef enum { #define GES_TYPE_EDGE ges_edge_get_type() -GST_EXPORT +GST_GES_API GType ges_edge_get_type (void); -GST_EXPORT +GST_GES_API const gchar * ges_track_type_name (GESTrackType type); G_END_DECLS diff --git a/ges/ges-extractable.h b/ges/ges-extractable.h index 8b1b30cbbb..afb20c6bbf 100644 --- a/ges/ges-extractable.h +++ b/ges/ges-extractable.h @@ -37,7 +37,7 @@ G_BEGIN_DECLS #define GES_IS_EXTRACTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_EXTRACTABLE)) #define GES_EXTRACTABLE_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GES_TYPE_EXTRACTABLE, GESExtractableInterface)) -GST_EXPORT +GST_GES_API GType ges_extractable_get_type (void); /** @@ -85,13 +85,13 @@ struct _GESExtractableInterface gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GESAsset* ges_extractable_get_asset (GESExtractable *self); -GST_EXPORT +GST_GES_API gboolean ges_extractable_set_asset (GESExtractable *self, GESAsset *asset); -GST_EXPORT +GST_GES_API gchar * ges_extractable_get_id (GESExtractable *self); G_END_DECLS diff --git a/ges/ges-formatter.h b/ges/ges-formatter.h index 9ac6752ed4..8ba2cc5074 100644 --- a/ges/ges-formatter.h +++ b/ges/ges-formatter.h @@ -138,10 +138,10 @@ struct _GESFormatterClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_formatter_get_type (void); -GST_EXPORT +GST_GES_API void ges_formatter_class_register_metas (GESFormatterClass * klass, const gchar *name, const gchar *description, @@ -150,25 +150,25 @@ void ges_formatter_class_register_metas (GESFormatterClass * klass, gdouble version, GstRank rank); -GST_EXPORT +GST_GES_API gboolean ges_formatter_can_load_uri (const gchar * uri, GError **error); -GST_EXPORT +GST_GES_API gboolean ges_formatter_can_save_uri (const gchar * uri, GError **error); -GST_EXPORT +GST_GES_API gboolean ges_formatter_load_from_uri (GESFormatter * formatter, GESTimeline *timeline, const gchar *uri, GError **error); -GST_EXPORT +GST_GES_API gboolean ges_formatter_save_to_uri (GESFormatter * formatter, GESTimeline *timeline, const gchar *uri, gboolean overwrite, GError **error); -GST_EXPORT +GST_GES_API GESAsset *ges_formatter_get_default (void); G_END_DECLS diff --git a/ges/ges-group.h b/ges/ges-group.h index 2865a47783..184f8febad 100644 --- a/ges/ges-group.h +++ b/ges/ges-group.h @@ -51,9 +51,9 @@ struct _GESGroupClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_group_get_type (void); -GST_EXPORT +GST_GES_API GESGroup *ges_group_new (void); G_END_DECLS diff --git a/ges/ges-image-source.h b/ges/ges-image-source.h index 898d47ddde..43e6416740 100644 --- a/ges/ges-image-source.h +++ b/ges/ges-image-source.h @@ -68,7 +68,7 @@ struct _GESImageSourceClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_image_source_get_type (void); G_END_DECLS diff --git a/ges/ges-internal.h b/ges/ges-internal.h index 19da68d89d..230abef7a0 100644 --- a/ges/ges-internal.h +++ b/ges/ges-internal.h @@ -145,10 +145,10 @@ ges_asset_cache_put (GESAsset * asset, GTask *task); G_GNUC_INTERNAL gboolean ges_asset_cache_set_loaded(GType extractable_type, const gchar * id, GError *error); -GST_EXPORT GESAsset* +GST_GES_API GESAsset* ges_asset_cache_lookup(GType extractable_type, const gchar * id); -GST_EXPORT gboolean +GST_GES_API gboolean ges_asset_try_proxy (GESAsset *asset, const gchar *new_id); G_GNUC_INTERNAL gboolean diff --git a/ges/ges-layer.h b/ges/ges-layer.h index df94d20f91..c3015070b9 100644 --- a/ges/ges-layer.h +++ b/ges/ges-layer.h @@ -89,23 +89,23 @@ struct _GESLayerClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_layer_get_type (void); -GST_EXPORT +GST_GES_API GESLayer* ges_layer_new (void); -GST_EXPORT +GST_GES_API void ges_layer_set_timeline (GESLayer * layer, GESTimeline * timeline); -GST_EXPORT GESTimeline * +GST_GES_API GESTimeline * ges_layer_get_timeline (GESLayer * layer); -GST_EXPORT +GST_GES_API gboolean ges_layer_add_clip (GESLayer * layer, GESClip * clip); -GST_EXPORT +GST_GES_API GESClip * ges_layer_add_asset (GESLayer *layer, GESAsset *asset, GstClockTime start, @@ -113,33 +113,33 @@ GESClip * ges_layer_add_asset (GESLayer *layer, GstClockTime duration, GESTrackType track_types); -GST_EXPORT +GST_GES_API gboolean ges_layer_remove_clip (GESLayer * layer, GESClip * clip); -GST_EXPORT +GST_GES_API void ges_layer_set_priority (GESLayer * layer, guint priority); -GST_EXPORT +GST_GES_API gboolean ges_layer_is_empty (GESLayer * layer); -GST_EXPORT +GST_GES_API GList* ges_layer_get_clips_in_interval (GESLayer * layer, GstClockTime start, GstClockTime end); -GST_EXPORT +GST_GES_API guint ges_layer_get_priority (GESLayer * layer); -GST_EXPORT +GST_GES_API gboolean ges_layer_get_auto_transition (GESLayer * layer); -GST_EXPORT +GST_GES_API void ges_layer_set_auto_transition (GESLayer * layer, gboolean auto_transition); -GST_EXPORT +GST_GES_API GList* ges_layer_get_clips (GESLayer * layer); -GST_EXPORT +GST_GES_API GstClockTime ges_layer_get_duration (GESLayer *layer); G_END_DECLS diff --git a/ges/ges-meta-container.h b/ges/ges-meta-container.h index 2782df60f1..6aad331738 100644 --- a/ges/ges-meta-container.h +++ b/ges/ges-meta-container.h @@ -118,186 +118,186 @@ struct _GESMetaContainerInterface { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_meta_container_get_type (void); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_boolean (GESMetaContainer *container, const gchar* meta_item, gboolean value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_int (GESMetaContainer *container, const gchar* meta_item, gint value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_uint (GESMetaContainer *container, const gchar* meta_item, guint value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_int64 (GESMetaContainer *container, const gchar* meta_item, gint64 value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_uint64 (GESMetaContainer *container, const gchar* meta_item, guint64 value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_float (GESMetaContainer *container, const gchar* meta_item, gfloat value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_double (GESMetaContainer *container, const gchar* meta_item, gdouble value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_date (GESMetaContainer *container, const gchar* meta_item, const GDate* value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_date_time (GESMetaContainer *container, const gchar* meta_item, const GstDateTime* value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_string (GESMetaContainer *container, const gchar* meta_item, const gchar* value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_set_meta (GESMetaContainer * container, const gchar* meta_item, const GValue *value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_boolean (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, gboolean value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_int (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, gint value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_uint (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, guint value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_int64 (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, gint64 value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_uint64 (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, guint64 value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_float (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, gfloat value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_double (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, gdouble value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_date (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, const GDate* value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_date_time (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, const GstDateTime* value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta_string (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, const gchar* value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_register_meta (GESMetaContainer *container, GESMetaFlag flags, const gchar* meta_item, const GValue * value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_check_meta_registered (GESMetaContainer *container, const gchar * meta_item, GESMetaFlag * flags, GType * type); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_boolean (GESMetaContainer *container, const gchar* meta_item, gboolean* dest); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_int (GESMetaContainer *container, const gchar* meta_item, gint* dest); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_uint (GESMetaContainer *container, const gchar* meta_item, guint* dest); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_int64 (GESMetaContainer *container, const gchar* meta_item, gint64* dest); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_uint64 (GESMetaContainer *container, const gchar* meta_item, guint64* dest); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_float (GESMetaContainer *container, const gchar* meta_item, gfloat* dest); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_double (GESMetaContainer *container, const gchar* meta_item, gdouble* dest); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_date (GESMetaContainer *container, const gchar* meta_item, GDate** dest); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_get_date_time (GESMetaContainer *container, const gchar* meta_item, GstDateTime** dest); -GST_EXPORT const gchar * +GST_GES_API const gchar * ges_meta_container_get_string (GESMetaContainer * container, const gchar * meta_item); -GST_EXPORT const GValue * +GST_GES_API const GValue * ges_meta_container_get_meta (GESMetaContainer * container, const gchar * key); @@ -307,15 +307,15 @@ typedef void const GValue *value, gpointer user_data); -GST_EXPORT void +GST_GES_API void ges_meta_container_foreach (GESMetaContainer *container, GESMetaForeachFunc func, gpointer user_data); -GST_EXPORT gchar * +GST_GES_API gchar * ges_meta_container_metas_to_string (GESMetaContainer *container); -GST_EXPORT gboolean +GST_GES_API gboolean ges_meta_container_add_metas_from_string (GESMetaContainer *container, const gchar *str); diff --git a/ges/ges-multi-file-source.h b/ges/ges-multi-file-source.h index d56164258a..9b61846e5b 100644 --- a/ges/ges-multi-file-source.h +++ b/ges/ges-multi-file-source.h @@ -62,10 +62,10 @@ struct _GESMultiFileSourceClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_multi_file_source_get_type (void); -GST_EXPORT +GST_GES_API GESMultiFileSource *ges_multi_file_source_new (gchar * uri); #define GES_MULTI_FILE_URI_PREFIX "multifile://" diff --git a/ges/ges-operation-clip.h b/ges/ges-operation-clip.h index 905d9a987b..65c96ac865 100644 --- a/ges/ges-operation-clip.h +++ b/ges/ges-operation-clip.h @@ -74,7 +74,7 @@ struct _GESOperationClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_operation_clip_get_type (void); G_END_DECLS diff --git a/ges/ges-operation.h b/ges/ges-operation.h index b4353332d5..c1443640a9 100644 --- a/ges/ges-operation.h +++ b/ges/ges-operation.h @@ -76,7 +76,7 @@ struct _GESOperationClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_operation_get_type (void); G_END_DECLS diff --git a/ges/ges-overlay-clip.h b/ges/ges-overlay-clip.h index f627f33c7a..1c63edd849 100644 --- a/ges/ges-overlay-clip.h +++ b/ges/ges-overlay-clip.h @@ -73,7 +73,7 @@ struct _GESOverlayClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_overlay_clip_get_type (void); G_END_DECLS diff --git a/ges/ges-pipeline.h b/ges/ges-pipeline.h index 04e7ae8731..df2a956e82 100644 --- a/ges/ges-pipeline.h +++ b/ges/ges-pipeline.h @@ -75,50 +75,50 @@ struct _GESPipelineClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_pipeline_get_type (void); -GST_EXPORT +GST_GES_API GESPipeline* ges_pipeline_new (void); -GST_EXPORT +GST_GES_API gboolean ges_pipeline_set_timeline (GESPipeline * pipeline, GESTimeline * timeline); -GST_EXPORT +GST_GES_API gboolean ges_pipeline_set_render_settings (GESPipeline *pipeline, const gchar * output_uri, GstEncodingProfile *profile); -GST_EXPORT +GST_GES_API gboolean ges_pipeline_set_mode (GESPipeline *pipeline, GESPipelineFlags mode); -GST_EXPORT +GST_GES_API GESPipelineFlags ges_pipeline_get_mode (GESPipeline *pipeline); -GST_EXPORT GstSample * +GST_GES_API GstSample * ges_pipeline_get_thumbnail(GESPipeline *self, GstCaps *caps); -GST_EXPORT GstSample * +GST_GES_API GstSample * ges_pipeline_get_thumbnail_rgb24(GESPipeline *self, gint width, gint height); -GST_EXPORT gboolean +GST_GES_API gboolean ges_pipeline_save_thumbnail(GESPipeline *self, int width, int height, const gchar *format, const gchar *location, GError **error); -GST_EXPORT GstElement * +GST_GES_API GstElement * ges_pipeline_preview_get_video_sink (GESPipeline * self); -GST_EXPORT void +GST_GES_API void ges_pipeline_preview_set_video_sink (GESPipeline * self, GstElement * sink); -GST_EXPORT GstElement * +GST_GES_API GstElement * ges_pipeline_preview_get_audio_sink (GESPipeline * self); -GST_EXPORT void +GST_GES_API void ges_pipeline_preview_set_audio_sink (GESPipeline * self, GstElement * sink); diff --git a/ges/ges-pitivi-formatter.h b/ges/ges-pitivi-formatter.h index 1b2d3fe8c1..ee970aec00 100644 --- a/ges/ges-pitivi-formatter.h +++ b/ges/ges-pitivi-formatter.h @@ -67,9 +67,9 @@ struct _GESPitiviFormatterClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_pitivi_formatter_get_type (void); -GST_EXPORT +GST_GES_API GESPitiviFormatter *ges_pitivi_formatter_new (void); G_END_DECLS diff --git a/ges/ges-prelude.h b/ges/ges-prelude.h new file mode 100644 index 0000000000..4503082a87 --- /dev/null +++ b/ges/ges-prelude.h @@ -0,0 +1,31 @@ +/* GStreamer GES Library + * Copyright (C) 2018 GStreamer developers + * + * ges-prelude.h: prelude include header for gst-ges 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_GES_PRELUDE_H__ +#define __GST_GES_PRELUDE_H__ + +#include + +#ifndef GST_GES_API +#define GST_GES_API GST_EXPORT +#endif + +#endif /* __GST_GES_PRELUDE_H__ */ diff --git a/ges/ges-project.h b/ges/ges-project.h index 03d18b3207..032dbaceed 100644 --- a/ges/ges-project.h +++ b/ges/ges-project.h @@ -37,7 +37,7 @@ G_BEGIN_DECLS typedef struct _GESProjectPrivate GESProjectPrivate; -GST_EXPORT +GST_GES_API GType ges_project_get_type (void); struct _GESProject @@ -75,53 +75,53 @@ struct _GESProjectClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API gboolean ges_project_add_asset (GESProject* project, GESAsset *asset); -GST_EXPORT +GST_GES_API gboolean ges_project_remove_asset (GESProject *project, GESAsset * asset); -GST_EXPORT +GST_GES_API GList * ges_project_list_assets (GESProject * project, GType filter); -GST_EXPORT +GST_GES_API gboolean ges_project_save (GESProject * project, GESTimeline * timeline, const gchar *uri, GESAsset * formatter_asset, gboolean overwrite, GError **error); -GST_EXPORT +GST_GES_API gboolean ges_project_load (GESProject * project, GESTimeline * timeline, GError **error); -GST_EXPORT +GST_GES_API GESProject * ges_project_new (const gchar *uri); -GST_EXPORT +GST_GES_API gchar * ges_project_get_uri (GESProject *project); -GST_EXPORT +GST_GES_API GESAsset * ges_project_get_asset (GESProject * project, const gchar *id, GType extractable_type); -GST_EXPORT +GST_GES_API gboolean ges_project_create_asset (GESProject * project, const gchar *id, GType extractable_type); -GST_EXPORT +GST_GES_API GESAsset * ges_project_create_asset_sync (GESProject * project, const gchar * id, GType extractable_type, GError **error); -GST_EXPORT +GST_GES_API GList * ges_project_get_loading_assets (GESProject * project); -GST_EXPORT +GST_GES_API gboolean ges_project_add_encoding_profile (GESProject *project, GstEncodingProfile *profile); -GST_EXPORT +GST_GES_API const GList *ges_project_list_encoding_profiles (GESProject *project); -GST_EXPORT +GST_GES_API gboolean ges_add_missing_uri_relocation_uri (const gchar * uri, gboolean recurse); diff --git a/ges/ges-screenshot.h b/ges/ges-screenshot.h index 80edd3209a..62868c34ab 100644 --- a/ges/ges-screenshot.h +++ b/ges/ges-screenshot.h @@ -22,10 +22,11 @@ #define __GES_SCREENSHOT_H__ #include +#include G_BEGIN_DECLS -GST_EXPORT GstSample * +GST_GES_API GstSample * ges_play_sink_convert_frame (GstElement * playsink, GstCaps * caps); G_END_DECLS diff --git a/ges/ges-smart-adder.h b/ges/ges-smart-adder.h index 01c653785c..fc98eb9572 100644 --- a/ges/ges-smart-adder.h +++ b/ges/ges-smart-adder.h @@ -61,10 +61,10 @@ struct _GESSmartAdder gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_smart_adder_get_type (void) G_GNUC_CONST; -GST_EXPORT +GST_GES_API GstElement* ges_smart_adder_new (GESTrack *track); G_END_DECLS diff --git a/ges/ges-source-clip.h b/ges/ges-source-clip.h index 334b9eb384..19b2f7f221 100644 --- a/ges/ges-source-clip.h +++ b/ges/ges-source-clip.h @@ -75,7 +75,7 @@ struct _GESSourceClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_source_clip_get_type (void); G_END_DECLS diff --git a/ges/ges-source.h b/ges/ges-source.h index 0d1d60414b..da50b453b0 100644 --- a/ges/ges-source.h +++ b/ges/ges-source.h @@ -77,7 +77,7 @@ struct _GESSourceClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_source_get_type (void); G_END_DECLS diff --git a/ges/ges-test-clip.h b/ges/ges-test-clip.h index 83f4a3780b..f68cd68ccc 100644 --- a/ges/ges-test-clip.h +++ b/ges/ges-test-clip.h @@ -75,37 +75,37 @@ struct _GESTestClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_test_clip_get_type (void); -GST_EXPORT void +GST_GES_API void ges_test_clip_set_mute (GESTestClip * self, gboolean mute); -GST_EXPORT void +GST_GES_API void ges_test_clip_set_vpattern (GESTestClip * self, GESVideoTestPattern vpattern); -GST_EXPORT void +GST_GES_API void ges_test_clip_set_frequency (GESTestClip * self, gdouble freq); -GST_EXPORT void +GST_GES_API void ges_test_clip_set_volume (GESTestClip * self, gdouble volume); -GST_EXPORT GESVideoTestPattern +GST_GES_API GESVideoTestPattern ges_test_clip_get_vpattern (GESTestClip * self); -GST_EXPORT +GST_GES_API gboolean ges_test_clip_is_muted (GESTestClip * self); -GST_EXPORT +GST_GES_API gdouble ges_test_clip_get_frequency (GESTestClip * self); -GST_EXPORT +GST_GES_API gdouble ges_test_clip_get_volume (GESTestClip * self); -GST_EXPORT +GST_GES_API GESTestClip* ges_test_clip_new (void); -GST_EXPORT +GST_GES_API GESTestClip* ges_test_clip_new_for_nick(gchar * nick); G_END_DECLS diff --git a/ges/ges-text-overlay-clip.h b/ges/ges-text-overlay-clip.h index 30eb52435e..144d091e14 100644 --- a/ges/ges-text-overlay-clip.h +++ b/ges/ges-text-overlay-clip.h @@ -69,60 +69,60 @@ struct _GESTextOverlayClipClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_text_overlay_clip_get_type (void); -GST_EXPORT void +GST_GES_API void ges_text_overlay_clip_set_text (GESTextOverlayClip * self, const gchar * text); -GST_EXPORT void +GST_GES_API void ges_text_overlay_clip_set_font_desc (GESTextOverlayClip * self, const gchar * font_desc); -GST_EXPORT void +GST_GES_API void ges_text_overlay_clip_set_valign (GESTextOverlayClip * self, GESTextVAlign valign); -GST_EXPORT void +GST_GES_API void ges_text_overlay_clip_set_halign (GESTextOverlayClip * self, GESTextHAlign halign); -GST_EXPORT void +GST_GES_API void ges_text_overlay_clip_set_color (GESTextOverlayClip * self, guint32 color); -GST_EXPORT void +GST_GES_API void ges_text_overlay_clip_set_xpos (GESTextOverlayClip * self, gdouble position); -GST_EXPORT void +GST_GES_API void ges_text_overlay_clip_set_ypos (GESTextOverlayClip * self, gdouble position); -GST_EXPORT +GST_GES_API const gchar *ges_text_overlay_clip_get_text (GESTextOverlayClip * self); -GST_EXPORT +GST_GES_API const gchar *ges_text_overlay_clip_get_font_desc (GESTextOverlayClip * self); -GST_EXPORT GESTextVAlign +GST_GES_API GESTextVAlign ges_text_overlay_clip_get_valignment (GESTextOverlayClip * self); -GST_EXPORT const guint32 +GST_GES_API const guint32 ges_text_overlay_clip_get_color (GESTextOverlayClip * self); -GST_EXPORT const gdouble +GST_GES_API const gdouble ges_text_overlay_clip_get_xpos (GESTextOverlayClip * self); -GST_EXPORT const gdouble +GST_GES_API const gdouble ges_text_overlay_clip_get_ypos (GESTextOverlayClip * self); -GST_EXPORT GESTextHAlign +GST_GES_API GESTextHAlign ges_text_overlay_clip_get_halignment (GESTextOverlayClip * self); -GST_EXPORT +GST_GES_API GESTextOverlayClip *ges_text_overlay_clip_new (void); G_END_DECLS diff --git a/ges/ges-text-overlay.h b/ges/ges-text-overlay.h index c73b634744..a175528707 100644 --- a/ges/ges-text-overlay.h +++ b/ges/ges-text-overlay.h @@ -64,51 +64,51 @@ struct _GESTextOverlayClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_text_overlay_get_type (void); -GST_EXPORT +GST_GES_API void ges_text_overlay_set_text (GESTextOverlay * self, const gchar * text); -GST_EXPORT +GST_GES_API void ges_text_overlay_set_font_desc (GESTextOverlay * self, const gchar * font_desc); -GST_EXPORT +GST_GES_API void ges_text_overlay_set_halignment (GESTextOverlay * self, GESTextHAlign halign); -GST_EXPORT +GST_GES_API void ges_text_overlay_set_valignment (GESTextOverlay * self, GESTextVAlign valign); -GST_EXPORT +GST_GES_API void ges_text_overlay_set_color (GESTextOverlay * self, guint32 color); -GST_EXPORT +GST_GES_API void ges_text_overlay_set_xpos (GESTextOverlay * self, gdouble position); -GST_EXPORT +GST_GES_API void ges_text_overlay_set_ypos (GESTextOverlay * self, gdouble position); -GST_EXPORT +GST_GES_API const gchar *ges_text_overlay_get_text (GESTextOverlay * self); -GST_EXPORT +GST_GES_API const char *ges_text_overlay_get_font_desc (GESTextOverlay * self); -GST_EXPORT +GST_GES_API GESTextHAlign ges_text_overlay_get_halignment (GESTextOverlay * self); -GST_EXPORT +GST_GES_API GESTextVAlign ges_text_overlay_get_valignment (GESTextOverlay * self); -GST_EXPORT +GST_GES_API const guint32 ges_text_overlay_get_color (GESTextOverlay * self); -GST_EXPORT +GST_GES_API const gdouble ges_text_overlay_get_xpos (GESTextOverlay * self); -GST_EXPORT +GST_GES_API const gdouble ges_text_overlay_get_ypos (GESTextOverlay * self); -GST_EXPORT +GST_GES_API GESTextOverlay *ges_text_overlay_new (void); G_END_DECLS diff --git a/ges/ges-timeline-element.h b/ges/ges-timeline-element.h index e0c5380b3b..06fc85a631 100644 --- a/ges/ges-timeline-element.h +++ b/ges/ges-timeline-element.h @@ -201,120 +201,120 @@ struct _GESTimelineElementClass gpointer _ges_reserved[GES_PADDING_LARGE - 2]; }; -GST_EXPORT +GST_GES_API GType ges_timeline_element_get_type (void) G_GNUC_CONST; -GST_EXPORT GESTimelineElement * +GST_GES_API GESTimelineElement * ges_timeline_element_get_toplevel_parent (GESTimelineElement *self); -GST_EXPORT +GST_GES_API GESTimelineElement * ges_timeline_element_get_parent (GESTimelineElement * self); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_set_parent (GESTimelineElement *self, GESTimelineElement *parent); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_set_timeline (GESTimelineElement *self, GESTimeline *timeline); -GST_EXPORT +GST_GES_API void ges_timeline_element_set_start (GESTimelineElement *self, GstClockTime start); -GST_EXPORT +GST_GES_API void ges_timeline_element_set_inpoint (GESTimelineElement *self, GstClockTime inpoint); -GST_EXPORT +GST_GES_API void ges_timeline_element_set_duration (GESTimelineElement *self, GstClockTime duration); -GST_EXPORT +GST_GES_API void ges_timeline_element_set_max_duration (GESTimelineElement *self, GstClockTime maxduration); -GST_EXPORT +GST_GES_API void ges_timeline_element_set_priority (GESTimelineElement *self, guint32 priority); -GST_EXPORT +GST_GES_API GstClockTime ges_timeline_element_get_start (GESTimelineElement *self); -GST_EXPORT +GST_GES_API GstClockTime ges_timeline_element_get_inpoint (GESTimelineElement *self); -GST_EXPORT +GST_GES_API GstClockTime ges_timeline_element_get_duration (GESTimelineElement *self); -GST_EXPORT +GST_GES_API GstClockTime ges_timeline_element_get_max_duration (GESTimelineElement *self); -GST_EXPORT +GST_GES_API GESTimeline * ges_timeline_element_get_timeline (GESTimelineElement *self); -GST_EXPORT +GST_GES_API guint32 ges_timeline_element_get_priority (GESTimelineElement *self); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_ripple (GESTimelineElement *self, GstClockTime start); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_ripple_end (GESTimelineElement *self, GstClockTime end); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_roll_start (GESTimelineElement *self, GstClockTime start); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_roll_end (GESTimelineElement *self, GstClockTime end); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_trim (GESTimelineElement *self, GstClockTime start); -GST_EXPORT +GST_GES_API GESTimelineElement * ges_timeline_element_copy (GESTimelineElement *self, gboolean deep); -GST_EXPORT +GST_GES_API gchar * ges_timeline_element_get_name (GESTimelineElement *self); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_set_name (GESTimelineElement *self, const gchar *name); -GST_EXPORT GParamSpec ** +GST_GES_API GParamSpec ** ges_timeline_element_list_children_properties (GESTimelineElement *self, guint *n_properties); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_lookup_child (GESTimelineElement *self, const gchar *prop_name, GObject **child, GParamSpec **pspec); -GST_EXPORT void +GST_GES_API void ges_timeline_element_get_child_property_by_pspec (GESTimelineElement * self, GParamSpec * pspec, GValue * value); -GST_EXPORT void +GST_GES_API void ges_timeline_element_get_child_property_valist (GESTimelineElement * self, const gchar * first_property_name, va_list var_args); -GST_EXPORT void +GST_GES_API void ges_timeline_element_get_child_properties (GESTimelineElement *self, const gchar * first_property_name, ...) G_GNUC_NULL_TERMINATED; -GST_EXPORT void +GST_GES_API void ges_timeline_element_set_child_property_valist (GESTimelineElement * self, const gchar * first_property_name, va_list var_args); -GST_EXPORT void +GST_GES_API void ges_timeline_element_set_child_property_by_pspec (GESTimelineElement * self, GParamSpec * pspec, GValue * value); -GST_EXPORT +GST_GES_API void ges_timeline_element_set_child_properties (GESTimelineElement * self, const gchar * first_property_name, ...) G_GNUC_NULL_TERMINATED; -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_set_child_property (GESTimelineElement *self, const gchar *property_name, GValue * value); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_get_child_property (GESTimelineElement *self, const gchar *property_name, GValue * value); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_add_child_property (GESTimelineElement * self, GParamSpec *pspec, GObject *child); -GST_EXPORT +GST_GES_API gboolean ges_timeline_element_remove_child_property(GESTimelineElement * self, GParamSpec *pspec); -GST_EXPORT +GST_GES_API GESTimelineElement * ges_timeline_element_paste (GESTimelineElement * self, GstClockTime paste_position); -GST_EXPORT +GST_GES_API GESTrackType ges_timeline_element_get_track_types (GESTimelineElement * self); G_END_DECLS diff --git a/ges/ges-timeline.h b/ges/ges-timeline.h index 477a5e42aa..f44f0b9556 100644 --- a/ges/ges-timeline.h +++ b/ges/ges-timeline.h @@ -99,66 +99,66 @@ struct _GESTimelineClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_timeline_get_type (void); -GST_EXPORT +GST_GES_API GESTimeline* ges_timeline_new (void); -GST_EXPORT +GST_GES_API GESTimeline* ges_timeline_new_from_uri (const gchar *uri, GError **error); -GST_EXPORT +GST_GES_API gboolean ges_timeline_load_from_uri (GESTimeline *timeline, const gchar *uri, GError **error); -GST_EXPORT +GST_GES_API gboolean ges_timeline_save_to_uri (GESTimeline * timeline, const gchar * uri, GESAsset *formatter_asset, gboolean overwrite, GError ** error); -GST_EXPORT +GST_GES_API gboolean ges_timeline_add_layer (GESTimeline *timeline, GESLayer *layer); -GST_EXPORT +GST_GES_API GESLayer * ges_timeline_append_layer (GESTimeline * timeline); -GST_EXPORT +GST_GES_API gboolean ges_timeline_remove_layer (GESTimeline *timeline, GESLayer *layer); -GST_EXPORT +GST_GES_API GList* ges_timeline_get_layers (GESTimeline *timeline); -GST_EXPORT +GST_GES_API GESLayer* ges_timeline_get_layer (GESTimeline *timeline, guint priority); -GST_EXPORT +GST_GES_API gboolean ges_timeline_add_track (GESTimeline *timeline, GESTrack *track); -GST_EXPORT +GST_GES_API gboolean ges_timeline_remove_track (GESTimeline *timeline, GESTrack *track); -GST_EXPORT +GST_GES_API GESTrack * ges_timeline_get_track_for_pad (GESTimeline *timeline, GstPad *pad); -GST_EXPORT +GST_GES_API GstPad * ges_timeline_get_pad_for_track (GESTimeline * timeline, GESTrack *track); -GST_EXPORT +GST_GES_API GList *ges_timeline_get_tracks (GESTimeline *timeline); -GST_EXPORT +GST_GES_API GList* ges_timeline_get_groups (GESTimeline * timeline); -GST_EXPORT +GST_GES_API gboolean ges_timeline_commit (GESTimeline * timeline); -GST_EXPORT +GST_GES_API gboolean ges_timeline_commit_sync (GESTimeline * timeline); -GST_EXPORT +GST_GES_API GstClockTime ges_timeline_get_duration (GESTimeline *timeline); -GST_EXPORT +GST_GES_API gboolean ges_timeline_get_auto_transition (GESTimeline * timeline); -GST_EXPORT +GST_GES_API void ges_timeline_set_auto_transition (GESTimeline * timeline, gboolean auto_transition); -GST_EXPORT +GST_GES_API GstClockTime ges_timeline_get_snapping_distance (GESTimeline * timeline); -GST_EXPORT +GST_GES_API void ges_timeline_set_snapping_distance (GESTimeline * timeline, GstClockTime snapping_distance); -GST_EXPORT +GST_GES_API GESTimelineElement * ges_timeline_get_element (GESTimeline * timeline, const gchar *name); -GST_EXPORT +GST_GES_API gboolean ges_timeline_is_empty (GESTimeline * timeline); -GST_EXPORT +GST_GES_API GESTimelineElement * ges_timeline_paste_element (GESTimeline * timeline, GESTimelineElement * element, GstClockTime position, gint layer_priority); diff --git a/ges/ges-title-clip.h b/ges/ges-title-clip.h index 0151360ad3..c10e8974f3 100644 --- a/ges/ges-title-clip.h +++ b/ges/ges-title-clip.h @@ -71,66 +71,66 @@ struct _GESTitleClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_title_clip_get_type (void); -GST_EXPORT void +GST_GES_API void ges_title_clip_set_text( GESTitleClip * self, const gchar * text); -GST_EXPORT void +GST_GES_API void ges_title_clip_set_font_desc (GESTitleClip * self, const gchar * font_desc); -GST_EXPORT void +GST_GES_API void ges_title_clip_set_valignment (GESTitleClip * self, GESTextVAlign valign); -GST_EXPORT void +GST_GES_API void ges_title_clip_set_halignment (GESTitleClip * self, GESTextHAlign halign); -GST_EXPORT void +GST_GES_API void ges_title_clip_set_color (GESTitleClip * self, guint32 color); -GST_EXPORT void +GST_GES_API void ges_title_clip_set_background (GESTitleClip * self, guint32 background); -GST_EXPORT void +GST_GES_API void ges_title_clip_set_xpos (GESTitleClip * self, gdouble position); -GST_EXPORT void +GST_GES_API void ges_title_clip_set_ypos (GESTitleClip * self, gdouble position); -GST_EXPORT const gchar* +GST_GES_API const gchar* ges_title_clip_get_font_desc (GESTitleClip * self); -GST_EXPORT GESTextVAlign +GST_GES_API GESTextVAlign ges_title_clip_get_valignment (GESTitleClip * self); -GST_EXPORT GESTextHAlign +GST_GES_API GESTextHAlign ges_title_clip_get_halignment (GESTitleClip * self); -GST_EXPORT const guint32 +GST_GES_API const guint32 ges_title_clip_get_text_color (GESTitleClip * self); -GST_EXPORT const guint32 +GST_GES_API const guint32 ges_title_clip_get_background_color (GESTitleClip * self); -GST_EXPORT const gdouble +GST_GES_API const gdouble ges_title_clip_get_xpos (GESTitleClip * self); -GST_EXPORT const gdouble +GST_GES_API const gdouble ges_title_clip_get_ypos (GESTitleClip * self); -GST_EXPORT +GST_GES_API const gchar* ges_title_clip_get_text (GESTitleClip * self); -GST_EXPORT +GST_GES_API GESTitleClip* ges_title_clip_new (void); G_END_DECLS diff --git a/ges/ges-title-source.h b/ges/ges-title-source.h index 362e28043d..8931a5f4d2 100644 --- a/ges/ges-title-source.h +++ b/ges/ges-title-source.h @@ -73,53 +73,53 @@ struct _GESTitleSourceClass { gpointer _ges_reserved[GES_PADDING - 1]; }; -GST_EXPORT +GST_GES_API GType ges_title_source_get_type (void); -GST_EXPORT +GST_GES_API void ges_title_source_set_text (GESTitleSource *self, const gchar *text); -GST_EXPORT +GST_GES_API void ges_title_source_set_font_desc (GESTitleSource *self, const gchar *font_desc); -GST_EXPORT +GST_GES_API void ges_title_source_set_halignment (GESTitleSource *self, GESTextHAlign halign); -GST_EXPORT +GST_GES_API void ges_title_source_set_valignment (GESTitleSource *self, GESTextVAlign valign); -GST_EXPORT +GST_GES_API void ges_title_source_set_text_color (GESTitleSource *self, guint32 color); -GST_EXPORT +GST_GES_API void ges_title_source_set_background_color (GESTitleSource *self, guint32 color); -GST_EXPORT +GST_GES_API void ges_title_source_set_xpos (GESTitleSource *self, gdouble position); -GST_EXPORT +GST_GES_API void ges_title_source_set_ypos (GESTitleSource *self, gdouble position); -GST_EXPORT +GST_GES_API const gchar *ges_title_source_get_text (GESTitleSource *source); -GST_EXPORT +GST_GES_API const gchar *ges_title_source_get_font_desc (GESTitleSource *source); -GST_EXPORT +GST_GES_API GESTextHAlign ges_title_source_get_halignment (GESTitleSource *source); -GST_EXPORT +GST_GES_API GESTextVAlign ges_title_source_get_valignment (GESTitleSource *source); -GST_EXPORT +GST_GES_API const guint32 ges_title_source_get_text_color (GESTitleSource *source); -GST_EXPORT +GST_GES_API const guint32 ges_title_source_get_background_color (GESTitleSource *source); -GST_EXPORT +GST_GES_API const gdouble ges_title_source_get_xpos (GESTitleSource *source); -GST_EXPORT +GST_GES_API const gdouble ges_title_source_get_ypos (GESTitleSource *source); G_END_DECLS diff --git a/ges/ges-track-element-asset.h b/ges/ges-track-element-asset.h index 0f0c1d69a0..4f2a49e9cd 100644 --- a/ges/ges-track-element-asset.h +++ b/ges/ges-track-element-asset.h @@ -36,7 +36,7 @@ G_BEGIN_DECLS typedef struct _GESTrackElementAssetPrivate GESTrackElementAssetPrivate; -GST_EXPORT +GST_GES_API GType ges_track_element_asset_get_type (void); struct _GESTrackElementAsset @@ -57,9 +57,9 @@ struct _GESTrackElementAssetClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API const GESTrackType ges_track_element_asset_get_track_type (GESTrackElementAsset *asset); -GST_EXPORT +GST_GES_API void ges_track_element_asset_set_track_type (GESTrackElementAsset * asset, GESTrackType type); G_END_DECLS diff --git a/ges/ges-track-element.h b/ges/ges-track-element.h index 679b26644d..2eaceaedcf 100644 --- a/ges/ges-track-element.h +++ b/ges/ges-track-element.h @@ -125,106 +125,106 @@ struct _GESTrackElementClass { gpointer _ges_reserved[GES_PADDING_LARGE]; }; -GST_EXPORT +GST_GES_API GType ges_track_element_get_type (void); -GST_EXPORT +GST_GES_API GESTrack* ges_track_element_get_track (GESTrackElement * object); -GST_EXPORT +GST_GES_API GESTrackType ges_track_element_get_track_type (GESTrackElement * object); -GST_EXPORT +GST_GES_API void ges_track_element_set_track_type (GESTrackElement * object, GESTrackType type); -GST_EXPORT +GST_GES_API GstElement * ges_track_element_get_nleobject (GESTrackElement * object); -GST_EXPORT +GST_GES_API GstElement * ges_track_element_get_gnlobject (GESTrackElement * object); -GST_EXPORT +GST_GES_API GstElement * ges_track_element_get_element (GESTrackElement * object); -GST_EXPORT +GST_GES_API gboolean ges_track_element_set_active (GESTrackElement * object, gboolean active); -GST_EXPORT +GST_GES_API gboolean ges_track_element_is_active (GESTrackElement * object); -GST_EXPORT GParamSpec ** +GST_GES_API GParamSpec ** ges_track_element_list_children_properties (GESTrackElement *object, guint *n_properties); -GST_EXPORT +GST_GES_API gboolean ges_track_element_lookup_child (GESTrackElement *object, const gchar *prop_name, GstElement **element, GParamSpec **pspec); -GST_EXPORT void +GST_GES_API void ges_track_element_get_child_property_by_pspec (GESTrackElement * object, GParamSpec * pspec, GValue * value); -GST_EXPORT void +GST_GES_API void ges_track_element_get_child_property_valist (GESTrackElement * object, const gchar * first_property_name, va_list var_args); -GST_EXPORT +GST_GES_API void ges_track_element_get_child_properties (GESTrackElement *object, const gchar * first_property_name, ...) G_GNUC_NULL_TERMINATED; -GST_EXPORT void +GST_GES_API void ges_track_element_set_child_property_valist (GESTrackElement * object, const gchar * first_property_name, va_list var_args); -GST_EXPORT void +GST_GES_API void ges_track_element_set_child_property_by_pspec (GESTrackElement * object, GParamSpec * pspec, GValue * value); -GST_EXPORT +GST_GES_API void ges_track_element_set_child_properties (GESTrackElement * object, const gchar * first_property_name, ...) G_GNUC_NULL_TERMINATED; -GST_EXPORT +GST_GES_API gboolean ges_track_element_set_child_property (GESTrackElement *object, const gchar *property_name, GValue * value); -GST_EXPORT +GST_GES_API gboolean ges_track_element_get_child_property (GESTrackElement *object, const gchar *property_name, GValue * value); -GST_EXPORT gboolean +GST_GES_API gboolean ges_track_element_edit (GESTrackElement * object, GList *layers, GESEditMode mode, GESEdge edge, guint64 position); -GST_EXPORT gboolean +GST_GES_API gboolean ges_track_element_set_control_source (GESTrackElement *object, GstControlSource *source, const gchar *property_name, const gchar *binding_type); -GST_EXPORT GstControlBinding * +GST_GES_API GstControlBinding * ges_track_element_get_control_binding (GESTrackElement *object, const gchar *property_name); -GST_EXPORT void +GST_GES_API void ges_track_element_add_children_props (GESTrackElement *self, GstElement *element, const gchar ** wanted_categories, const gchar **blacklist, const gchar **whitelist); -GST_EXPORT GHashTable * +GST_GES_API GHashTable * ges_track_element_get_all_control_bindings (GESTrackElement * trackelement); -GST_EXPORT gboolean +GST_GES_API gboolean ges_track_element_remove_control_binding (GESTrackElement * object, const gchar * property_name); G_END_DECLS diff --git a/ges/ges-track.h b/ges/ges-track.h index 3befcfe5a0..942c7b530c 100644 --- a/ges/ges-track.h +++ b/ges/ges-track.h @@ -81,35 +81,35 @@ struct _GESTrackClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API const GstCaps* ges_track_get_caps (GESTrack *track); -GST_EXPORT +GST_GES_API GList* ges_track_get_elements (GESTrack *track); -GST_EXPORT +GST_GES_API const GESTimeline* ges_track_get_timeline (GESTrack *track); -GST_EXPORT +GST_GES_API gboolean ges_track_commit (GESTrack *track); -GST_EXPORT +GST_GES_API void ges_track_set_timeline (GESTrack *track, GESTimeline *timeline); -GST_EXPORT +GST_GES_API gboolean ges_track_add_element (GESTrack *track, GESTrackElement *object); -GST_EXPORT +GST_GES_API gboolean ges_track_remove_element (GESTrack *track, GESTrackElement *object); -GST_EXPORT +GST_GES_API void ges_track_set_create_element_for_gap_func (GESTrack *track, GESCreateElementForGapFunc func); -GST_EXPORT +GST_GES_API void ges_track_set_mixing (GESTrack *track, gboolean mixing); -GST_EXPORT +GST_GES_API gboolean ges_track_get_mixing (GESTrack *track); -GST_EXPORT +GST_GES_API void ges_track_set_restriction_caps (GESTrack *track, const GstCaps *caps); -GST_EXPORT +GST_GES_API void ges_track_update_restriction_caps (GESTrack *track, const GstCaps *caps); /* standard methods */ -GST_EXPORT +GST_GES_API GType ges_track_get_type (void); -GST_EXPORT +GST_GES_API GESTrack* ges_track_new (GESTrackType type, GstCaps * caps); G_END_DECLS diff --git a/ges/ges-transition-clip.h b/ges/ges-transition-clip.h index 48e63693e8..fa4976b6cd 100644 --- a/ges/ges-transition-clip.h +++ b/ges/ges-transition-clip.h @@ -78,12 +78,12 @@ struct _GESTransitionClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_transition_clip_get_type (void); -GST_EXPORT +GST_GES_API GESTransitionClip *ges_transition_clip_new (GESVideoStandardTransitionType vtype); -GST_EXPORT +GST_GES_API GESTransitionClip *ges_transition_clip_new_for_nick (char *nick); G_END_DECLS diff --git a/ges/ges-transition.h b/ges/ges-transition.h index f77e5afa0d..d52fc21115 100644 --- a/ges/ges-transition.h +++ b/ges/ges-transition.h @@ -81,7 +81,7 @@ struct _GESTransitionClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_transition_get_type (void); G_END_DECLS diff --git a/ges/ges-types.h b/ges/ges-types.h index 05181c4fc5..4a66d1fdfd 100644 --- a/ges/ges-types.h +++ b/ges/ges-types.h @@ -22,6 +22,7 @@ #define __GES_TYPES_H__ #include +#include G_BEGIN_DECLS diff --git a/ges/ges-uri-asset.h b/ges/ges-uri-asset.h index fc5eaa88df..c746814b07 100644 --- a/ges/ges-uri-asset.h +++ b/ges/ges-uri-asset.h @@ -43,7 +43,7 @@ G_BEGIN_DECLS typedef struct _GESUriClipAssetPrivate GESUriClipAssetPrivate; -GST_EXPORT +GST_GES_API GType ges_uri_clip_asset_get_type (void); struct _GESUriClipAsset @@ -68,23 +68,23 @@ struct _GESUriClipAssetClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GstDiscovererInfo *ges_uri_clip_asset_get_info (const GESUriClipAsset * self); -GST_EXPORT +GST_GES_API GstClockTime ges_uri_clip_asset_get_duration (GESUriClipAsset *self); -GST_EXPORT +GST_GES_API gboolean ges_uri_clip_asset_is_image (GESUriClipAsset *self); -GST_EXPORT +GST_GES_API void ges_uri_clip_asset_new (const gchar *uri, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); -GST_EXPORT +GST_GES_API GESUriClipAsset* ges_uri_clip_asset_request_sync (const gchar *uri, GError **error); -GST_EXPORT +GST_GES_API void ges_uri_clip_asset_class_set_timeout (GESUriClipAssetClass *klass, GstClockTime timeout); -GST_EXPORT +GST_GES_API const GList * ges_uri_clip_asset_get_stream_assets (GESUriClipAsset *self); #define GES_TYPE_URI_SOURCE_ASSET ges_uri_source_asset_get_type() @@ -101,7 +101,7 @@ const GList * ges_uri_clip_asset_get_stream_assets (GESUriClipAsset *self); typedef struct _GESUriSourceAssetPrivate GESUriSourceAssetPrivate; -GST_EXPORT +GST_GES_API GType ges_uri_source_asset_get_type (void); struct _GESUriSourceAsset @@ -121,11 +121,11 @@ struct _GESUriSourceAssetClass gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GstDiscovererStreamInfo * ges_uri_source_asset_get_stream_info (GESUriSourceAsset *asset); -GST_EXPORT +GST_GES_API const gchar * ges_uri_source_asset_get_stream_uri (GESUriSourceAsset *asset); -GST_EXPORT +GST_GES_API const GESUriClipAsset *ges_uri_source_asset_get_filesource_asset (GESUriSourceAsset *asset); G_END_DECLS diff --git a/ges/ges-uri-clip.h b/ges/ges-uri-clip.h index 09271b2d20..30fa19e9b4 100644 --- a/ges/ges-uri-clip.h +++ b/ges/ges-uri-clip.h @@ -69,24 +69,24 @@ struct _GESUriClipClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_uri_clip_get_type (void); -GST_EXPORT void +GST_GES_API void ges_uri_clip_set_mute (GESUriClip * self, gboolean mute); -GST_EXPORT void +GST_GES_API void ges_uri_clip_set_is_image (GESUriClip * self, gboolean is_image); -GST_EXPORT +GST_GES_API gboolean ges_uri_clip_is_muted (GESUriClip * self); -GST_EXPORT +GST_GES_API gboolean ges_uri_clip_is_image (GESUriClip * self); -GST_EXPORT +GST_GES_API const gchar *ges_uri_clip_get_uri (GESUriClip * self); -GST_EXPORT +GST_GES_API GESUriClip* ges_uri_clip_new (const gchar *uri); G_END_DECLS diff --git a/ges/ges-utils.h b/ges/ges-utils.h index ce07c2c62c..d3354d2cf7 100644 --- a/ges/ges-utils.h +++ b/ges/ges-utils.h @@ -26,11 +26,11 @@ G_BEGIN_DECLS -GST_EXPORT +GST_GES_API GESTimeline * ges_timeline_new_audio_video (void); -GST_EXPORT +GST_GES_API gboolean ges_pspec_equal (gconstpointer key_spec_1, gconstpointer key_spec_2); -GST_EXPORT +GST_GES_API guint ges_pspec_hash (gconstpointer key_spec); diff --git a/ges/ges-video-source.h b/ges/ges-video-source.h index 1e8a65ec9b..cd1f28a58d 100644 --- a/ges/ges-video-source.h +++ b/ges/ges-video-source.h @@ -88,7 +88,7 @@ struct _GESVideoSourceClass { } ABI; }; -GST_EXPORT +GST_GES_API GType ges_video_source_get_type (void); G_END_DECLS diff --git a/ges/ges-video-test-source.h b/ges/ges-video-test-source.h index d145479204..169fe07806 100644 --- a/ges/ges-video-test-source.h +++ b/ges/ges-video-test-source.h @@ -67,13 +67,13 @@ struct _GESVideoTestSourceClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_video_test_source_get_type (void); -GST_EXPORT void +GST_GES_API void ges_video_test_source_set_pattern(GESVideoTestSource *self, GESVideoTestPattern pattern); -GST_EXPORT GESVideoTestPattern +GST_GES_API GESVideoTestPattern ges_video_test_source_get_pattern (GESVideoTestSource *source); G_END_DECLS diff --git a/ges/ges-video-track.h b/ges/ges-video-track.h index 0051c20502..35fcfc4bda 100644 --- a/ges/ges-video-track.h +++ b/ges/ges-video-track.h @@ -54,10 +54,10 @@ struct _GESVideoTrack gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_video_track_get_type (void) G_GNUC_CONST; -GST_EXPORT +GST_GES_API GESVideoTrack * ges_video_track_new (void); G_END_DECLS diff --git a/ges/ges-video-transition.h b/ges/ges-video-transition.h index 5262b5b2b4..afa442fce4 100644 --- a/ges/ges-video-transition.h +++ b/ges/ges-video-transition.h @@ -75,27 +75,27 @@ struct _GESVideoTransitionClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_video_transition_get_type (void); -GST_EXPORT +GST_GES_API GESVideoTransition* ges_video_transition_new (void); -GST_EXPORT +GST_GES_API gboolean ges_video_transition_set_transition_type (GESVideoTransition * self, GESVideoStandardTransitionType type); -GST_EXPORT GESVideoStandardTransitionType +GST_GES_API GESVideoStandardTransitionType ges_video_transition_get_transition_type (GESVideoTransition * trans); -GST_EXPORT +GST_GES_API void ges_video_transition_set_border (GESVideoTransition * self, guint value); -GST_EXPORT +GST_GES_API gint ges_video_transition_get_border (GESVideoTransition * self); -GST_EXPORT +GST_GES_API void ges_video_transition_set_inverted (GESVideoTransition * self, gboolean inverted); -GST_EXPORT +GST_GES_API gboolean ges_video_transition_is_inverted (GESVideoTransition * self); G_END_DECLS diff --git a/ges/ges-video-uri-source.h b/ges/ges-video-uri-source.h index b91ede3b47..f8c314c846 100644 --- a/ges/ges-video-uri-source.h +++ b/ges/ges-video-uri-source.h @@ -69,7 +69,7 @@ struct _GESVideoUriSourceClass { gpointer _ges_reserved[GES_PADDING]; }; -GST_EXPORT +GST_GES_API GType ges_video_uri_source_get_type (void); G_END_DECLS diff --git a/ges/ges-xml-formatter.h b/ges/ges-xml-formatter.h index 66061036a2..e06fdcf21f 100644 --- a/ges/ges-xml-formatter.h +++ b/ges/ges-xml-formatter.h @@ -48,7 +48,7 @@ typedef struct gpointer _ges_reserved[GES_PADDING]; } GESXmlFormatterClass; -GST_EXPORT +GST_GES_API GType ges_xml_formatter_get_type (void); G_END_DECLS diff --git a/ges/ges.h b/ges/ges.h index a6acf1fdec..c23a839b74 100644 --- a/ges/ges.h +++ b/ges/ges.h @@ -20,9 +20,11 @@ #ifndef __GES_H__ #define __GES_H__ + #include #include +#include #include #include @@ -85,18 +87,18 @@ G_BEGIN_DECLS -GST_EXPORT +GST_GES_API gboolean ges_init (void); -GST_EXPORT +GST_GES_API gboolean ges_init_check (int *argc, char **argv[], GError ** err); -GST_EXPORT +GST_GES_API void ges_deinit (void); -GST_EXPORT +GST_GES_API void ges_version (guint * major, guint * minor, guint * micro, guint * nano); -GST_EXPORT GOptionGroup * +GST_GES_API GOptionGroup * ges_init_get_option_group (void); -GST_EXPORT +GST_GES_API gboolean ges_validate_register_action_types (void); G_END_DECLS diff --git a/ges/meson.build b/ges/meson.build index 675d4599d9..fe6ca74057 100644 --- a/ges/meson.build +++ b/ges/meson.build @@ -67,6 +67,7 @@ ges_sources = [ ges_headers = [ 'ges-types.h', 'ges.h', + 'ges-prelude.h', 'ges-enums.h', 'ges-gerror.h', 'ges-meta-container.h',