From e1fb1a0ff8fa407974f89d5162664690a134cde4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 20 Jun 2017 10:06:01 +0300 Subject: [PATCH] libs: Export boxed type copy/free functions for the remaining types --- gst-libs/gst/pbutils/install-plugins.c | 2 +- gst-libs/gst/pbutils/install-plugins.h | 1 + gst-libs/gst/rtsp/gstrtspmessage.c | 4 ++-- gst-libs/gst/rtsp/gstrtspmessage.h | 3 +++ win32/common/libgstpbutils.def | 1 + win32/common/libgstrtsp.def | 2 ++ 6 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/pbutils/install-plugins.c b/gst-libs/gst/pbutils/install-plugins.c index d3eb3687f..785aac5eb 100644 --- a/gst-libs/gst/pbutils/install-plugins.c +++ b/gst-libs/gst/pbutils/install-plugins.c @@ -444,7 +444,7 @@ gst_install_plugins_context_free (GstInstallPluginsContext * ctx) g_free (ctx); } -static GstInstallPluginsContext * +GstInstallPluginsContext * gst_install_plugins_context_copy (GstInstallPluginsContext * ctx) { GstInstallPluginsContext *ret; diff --git a/gst-libs/gst/pbutils/install-plugins.h b/gst-libs/gst/pbutils/install-plugins.h index a749349b5..d310e6640 100644 --- a/gst-libs/gst/pbutils/install-plugins.h +++ b/gst-libs/gst/pbutils/install-plugins.h @@ -99,6 +99,7 @@ typedef struct _GstInstallPluginsContext GstInstallPluginsContext; GstInstallPluginsContext * gst_install_plugins_context_new (void); +GstInstallPluginsContext * gst_install_plugins_context_copy (GstInstallPluginsContext * ctx); void gst_install_plugins_context_free (GstInstallPluginsContext * ctx); void gst_install_plugins_context_set_confirm_search (GstInstallPluginsContext * ctx, diff --git a/gst-libs/gst/rtsp/gstrtspmessage.c b/gst-libs/gst/rtsp/gstrtspmessage.c index 1ff3b1029..c91a5e64e 100644 --- a/gst-libs/gst/rtsp/gstrtspmessage.c +++ b/gst-libs/gst/rtsp/gstrtspmessage.c @@ -1214,7 +1214,7 @@ gst_rtsp_message_parse_auth_credentials (GstRTSPMessage * msg, return (GstRTSPAuthCredential **) g_ptr_array_free (auth_credentials, FALSE); } -static GstRTSPAuthParam * +GstRTSPAuthParam * gst_rtsp_auth_param_copy (GstRTSPAuthParam * param) { GstRTSPAuthParam *copy; @@ -1229,7 +1229,7 @@ gst_rtsp_auth_param_copy (GstRTSPAuthParam * param) return copy; } -static void +void gst_rtsp_auth_param_free (GstRTSPAuthParam * param) { if (param != NULL) { diff --git a/gst-libs/gst/rtsp/gstrtspmessage.h b/gst-libs/gst/rtsp/gstrtspmessage.h index d6c5c67ce..8e623d37b 100644 --- a/gst-libs/gst/rtsp/gstrtspmessage.h +++ b/gst-libs/gst/rtsp/gstrtspmessage.h @@ -218,6 +218,9 @@ struct _GstRTSPAuthParam { gchar *value; }; +GstRTSPAuthParam * gst_rtsp_auth_param_copy (GstRTSPAuthParam * param); +void gst_rtsp_auth_param_free (GstRTSPAuthParam * param); + GstRTSPAuthCredential ** gst_rtsp_message_parse_auth_credentials (GstRTSPMessage * msg, GstRTSPHeaderField field); void gst_rtsp_auth_credentials_free (GstRTSPAuthCredential ** credentials); diff --git a/win32/common/libgstpbutils.def b/win32/common/libgstpbutils.def index 6fceeb1be..bc0c1e076 100644 --- a/win32/common/libgstpbutils.def +++ b/win32/common/libgstpbutils.def @@ -139,6 +139,7 @@ EXPORTS gst_encoding_video_profile_set_pass gst_encoding_video_profile_set_variableframerate gst_install_plugins_async + gst_install_plugins_context_copy gst_install_plugins_context_free gst_install_plugins_context_get_type gst_install_plugins_context_new diff --git a/win32/common/libgstrtsp.def b/win32/common/libgstrtsp.def index 1d0be240f..07a2d94e8 100644 --- a/win32/common/libgstrtsp.def +++ b/win32/common/libgstrtsp.def @@ -2,6 +2,8 @@ EXPORTS gst_rtsp_auth_credential_get_type gst_rtsp_auth_credentials_free gst_rtsp_auth_method_get_type + gst_rtsp_auth_param_copy + gst_rtsp_auth_param_free gst_rtsp_auth_param_get_type gst_rtsp_connection_accept gst_rtsp_connection_clear_auth_params -- 2.34.1