[SCM] libmms/master: Hide internal symbols

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Sun Nov 15 13:40:31 UTC 2015


The following commit has been merged in the master branch:
commit c46af8d6387501cedd1ed81c422ff3360a927be5
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Sun Nov 15 13:20:58 2015 +0100

    Hide internal symbols

diff --git a/debian/libmms0.symbols b/debian/libmms0.symbols
index d0d5837..6b1d3ae 100644
--- a/debian/libmms0.symbols
+++ b/debian/libmms0.symbols
@@ -1,22 +1,4 @@
 libmms.so.0 libmms0 #MINVER#
- gnet_mms_helper at Base 0.6
- gnet_uri_clone at Base 0.4
- gnet_uri_delete at Base 0.4
- gnet_uri_equal at Base 0.4
- gnet_uri_escape at Base 0.4
- gnet_uri_get_string at Base 0.4
- gnet_uri_hash at Base 0.4
- gnet_uri_new at Base 0.4
- gnet_uri_new_fields at Base 0.4
- gnet_uri_new_fields_all at Base 0.4
- gnet_uri_set_fragment at Base 0.4
- gnet_uri_set_hostname at Base 0.4
- gnet_uri_set_path at Base 0.4
- gnet_uri_set_port at Base 0.4
- gnet_uri_set_query at Base 0.4
- gnet_uri_set_scheme at Base 0.4
- gnet_uri_set_userinfo at Base 0.4
- gnet_uri_unescape at Base 0.4
  mms_close at Base 0.4
  mms_connect at Base 0.4
  mms_default_io at Base 0.6.2
@@ -64,4 +46,3 @@ libmms.so.0 libmms0 #MINVER#
  mmsx_read at Base 0.4
  mmsx_seek at Base 0.4
  mmsx_time_seek at Base 0.4
- status_to_string at Base 0.6
diff --git a/debian/patches/hide-internal-symbols.patch b/debian/patches/hide-internal-symbols.patch
new file mode 100644
index 0000000..19c60ad
--- /dev/null
+++ b/debian/patches/hide-internal-symbols.patch
@@ -0,0 +1,83 @@
+Description: Hide internal symbols
+Author: Sebastian Ramacher <sramacher at debian.org>
+Last-Update: 2015-11-15
+
+--- a/src/uri.h
++++ b/src/uri.h
+@@ -61,38 +61,38 @@
+ 
+ 
+ 
+-GURI*     gnet_uri_new (const char* uri);
++GURI*     gnet_uri_new (const char* uri) __attribute__((visibility("hidden")));
+ GURI*     gnet_uri_new_fields (const char* scheme, const char* hostname, 
+-			       const gint port, const char* path);
++			       const gint port, const char* path) __attribute__((visibility("hidden")));
+ GURI*
+ gnet_uri_new_fields_all (const char* scheme, const char* user, 
+ 			 const char* passwd, const char* hostname,
+ 			 const gint port, const char* path, 
+-			 const char* query, const char* fragment);
+-GURI*     gnet_uri_clone (const GURI* uri);
+-void      gnet_uri_delete (GURI* uri);
++			 const char* query, const char* fragment) __attribute__((visibility("hidden")));
++GURI*     gnet_uri_clone (const GURI* uri) __attribute__((visibility("hidden")));
++void      gnet_uri_delete (GURI* uri) __attribute__((visibility("hidden")));
+ 	       
+-gboolean  gnet_uri_equal (gconstpointer p1, gconstpointer p2);
++gboolean  gnet_uri_equal (gconstpointer p1, gconstpointer p2) __attribute__((visibility("hidden")));
+ #if 0 /* removing due to real glib dependence, but unneeded by libmms */
+ guint     gnet_uri_hash (gconstpointer p);
+ #endif
+ 
+-void	  gnet_uri_escape (GURI* uri);
+-void	  gnet_uri_unescape (GURI* uri);
++void	  gnet_uri_escape (GURI* uri) __attribute__((visibility("hidden")));
++void	  gnet_uri_unescape (GURI* uri) __attribute__((visibility("hidden")));
+ 
+ #if 0 /* removing due to real glib dependence, but unneeded by libmms */
+ char* 	  gnet_uri_get_string (const GURI* uri);
+ #endif
+ 
+-void 	  gnet_uri_set_scheme   (GURI* uri, const char* scheme);
+-void 	  gnet_uri_set_userinfo (GURI* uri, const char* user, const char* passwd);
+-void 	  gnet_uri_set_hostname (GURI* uri, const char* hostname);
+-void 	  gnet_uri_set_port     (GURI* uri, gint port);
+-void 	  gnet_uri_set_path	(GURI* uri, const char* path);
+-void 	  gnet_uri_set_query 	(GURI* uri, const char* query);
+-void 	  gnet_uri_set_fragment (GURI* uri, const char* fragment);
++void 	  gnet_uri_set_scheme   (GURI* uri, const char* scheme) __attribute__((visibility("hidden")));
++void 	  gnet_uri_set_userinfo (GURI* uri, const char* user, const char* passwd) __attribute__((visibility("hidden")));
++void 	  gnet_uri_set_hostname (GURI* uri, const char* hostname) __attribute__((visibility("hidden")));
++void 	  gnet_uri_set_port     (GURI* uri, gint port) __attribute__((visibility("hidden")));
++void 	  gnet_uri_set_path	(GURI* uri, const char* path) __attribute__((visibility("hidden")));
++void 	  gnet_uri_set_query 	(GURI* uri, const char* query) __attribute__((visibility("hidden")));
++void 	  gnet_uri_set_fragment (GURI* uri, const char* fragment) __attribute__((visibility("hidden")));
+ 
+-char*     gnet_mms_helper(const GURI* uri, int make_absolute);
++char*     gnet_mms_helper(const GURI* uri, int make_absolute) __attribute__((visibility("hidden")));
+ 
+ #ifdef __cplusplus
+ }
+--- a/src/mms.c
++++ b/src/mms.c
+@@ -627,7 +627,7 @@
+   guid[36] = '\0';
+ }
+ 
+-const char *status_to_string(int status)
++static const char *status_to_string(int status)
+ {
+   switch (status) {
+   case 0x80070003:
+--- a/src/utf.h
++++ b/src/utf.h
+@@ -30,7 +30,7 @@
+ extern "C" {
+ #endif /* __cplusplus */
+ 
+-int mms_utf8_to_utf16le(char* dest, size_t dest_size, const char* str);
++int mms_utf8_to_utf16le(char* dest, size_t dest_size, const char* str) __attribute__((visibility("hidden")));
+ 
+ #ifdef __cplusplus
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3efae35
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+hide-internal-symbols.patch

-- 
libmms packaging



More information about the pkg-multimedia-commits mailing list