mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
app: mark symbols explicitly for export with GST_EXPORT
This commit is contained in:
parent
fda887179e
commit
7ae9b4ac4e
4 changed files with 62 additions and 4 deletions
|
@ -3,6 +3,7 @@ lib_LTLIBRARIES = libgstapp-@GST_API_VERSION@.la
|
|||
glib_enum_define = GST_APP
|
||||
glib_gen_prefix = __gst_app
|
||||
glib_gen_basename = app
|
||||
glib_gen_decl_banner=GST_EXPORT
|
||||
|
||||
glib_enum_headers = gstappsrc.h
|
||||
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
import sys, os, shutil, subprocess
|
||||
|
||||
h_array = ['--fhead',
|
||||
"#ifndef __GST_APP_ENUM_TYPES_H__\n#define __GST_APP_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n",
|
||||
"#ifndef __GST_APP_ENUM_TYPES_H__\n#define __GST_APP_ENUM_TYPES_H__\n\n#include <gst/gst.h>\n\nG_BEGIN_DECLS\n",
|
||||
'--fprod',
|
||||
"\n/* enumerations from \"@filename@\" */\n",
|
||||
'--vhead',
|
||||
'GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n',
|
||||
'GST_EXPORT GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n',
|
||||
'--ftail',
|
||||
'G_END_DECLS\n\n#endif /* __GST_APP_ENUM_TYPES_H__ */',
|
||||
]
|
||||
|
|
|
@ -101,33 +101,61 @@ struct _GstAppSinkClass
|
|||
gpointer _gst_reserved[GST_PADDING - 2];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GType gst_app_sink_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_sink_set_caps (GstAppSink *appsink, const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GstCaps * gst_app_sink_get_caps (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
gboolean gst_app_sink_is_eos (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_sink_set_emit_signals (GstAppSink *appsink, gboolean emit);
|
||||
|
||||
GST_EXPORT
|
||||
gboolean gst_app_sink_get_emit_signals (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_sink_set_max_buffers (GstAppSink *appsink, guint max);
|
||||
|
||||
GST_EXPORT
|
||||
guint gst_app_sink_get_max_buffers (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_sink_set_drop (GstAppSink *appsink, gboolean drop);
|
||||
|
||||
GST_EXPORT
|
||||
gboolean gst_app_sink_get_drop (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_sink_set_buffer_list_support (GstAppSink *appsink, gboolean enable_lists);
|
||||
|
||||
GST_EXPORT
|
||||
gboolean gst_app_sink_get_buffer_list_support (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_sink_set_wait_on_eos (GstAppSink *appsink, gboolean wait);
|
||||
|
||||
GST_EXPORT
|
||||
gboolean gst_app_sink_get_wait_on_eos (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
GstSample * gst_app_sink_pull_preroll (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
GstSample * gst_app_sink_pull_sample (GstAppSink *appsink);
|
||||
|
||||
GST_EXPORT
|
||||
GstSample * gst_app_sink_try_pull_preroll (GstAppSink *appsink, GstClockTime timeout);
|
||||
|
||||
GST_EXPORT
|
||||
GstSample * gst_app_sink_try_pull_sample (GstAppSink *appsink, GstClockTime timeout);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_sink_set_callbacks (GstAppSink * appsink,
|
||||
GstAppSinkCallbacks *callbacks,
|
||||
gpointer user_data,
|
||||
|
|
|
@ -116,35 +116,64 @@ struct _GstAppSrcClass
|
|||
gpointer _gst_reserved[GST_PADDING-1];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GType gst_app_src_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_set_caps (GstAppSrc *appsrc, const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GstCaps* gst_app_src_get_caps (GstAppSrc *appsrc);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_set_size (GstAppSrc *appsrc, gint64 size);
|
||||
|
||||
GST_EXPORT
|
||||
gint64 gst_app_src_get_size (GstAppSrc *appsrc);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_set_duration (GstAppSrc *appsrc, GstClockTime duration);
|
||||
|
||||
GST_EXPORT
|
||||
GstClockTime gst_app_src_get_duration (GstAppSrc *appsrc);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_set_stream_type (GstAppSrc *appsrc, GstAppStreamType type);
|
||||
|
||||
GST_EXPORT
|
||||
GstAppStreamType gst_app_src_get_stream_type (GstAppSrc *appsrc);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_set_max_bytes (GstAppSrc *appsrc, guint64 max);
|
||||
|
||||
GST_EXPORT
|
||||
guint64 gst_app_src_get_max_bytes (GstAppSrc *appsrc);
|
||||
|
||||
GST_EXPORT
|
||||
guint64 gst_app_src_get_current_level_bytes (GstAppSrc *appsrc);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_set_latency (GstAppSrc *appsrc, guint64 min, guint64 max);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_get_latency (GstAppSrc *appsrc, guint64 *min, guint64 *max);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_set_emit_signals (GstAppSrc *appsrc, gboolean emit);
|
||||
|
||||
GST_EXPORT
|
||||
gboolean gst_app_src_get_emit_signals (GstAppSrc *appsrc);
|
||||
|
||||
GST_EXPORT
|
||||
GstFlowReturn gst_app_src_push_buffer (GstAppSrc *appsrc, GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GstFlowReturn gst_app_src_end_of_stream (GstAppSrc *appsrc);
|
||||
|
||||
GST_EXPORT
|
||||
GstFlowReturn gst_app_src_push_sample (GstAppSrc *appsrc, GstSample *sample);
|
||||
|
||||
GST_EXPORT
|
||||
void gst_app_src_set_callbacks (GstAppSrc * appsrc,
|
||||
GstAppSrcCallbacks *callbacks,
|
||||
gpointer user_data,
|
||||
|
|
Loading…
Reference in a new issue