hide all internal symbols of the library using -fvisibility=hidden
This commit is contained in:
parent
6d68a0e5e2
commit
c36a54d063
|
@ -10,6 +10,8 @@ AC_CONFIG_MACRO_DIR([m4])
|
||||||
dnl kernel style compile messages
|
dnl kernel style compile messages
|
||||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
|
|
||||||
|
gl_VISIBILITY
|
||||||
|
|
||||||
dnl checks for programs
|
dnl checks for programs
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|
|
@ -17,6 +17,8 @@ libosmo_tcap_la_SOURCES = \
|
||||||
tsl_tco.c \
|
tsl_tco.c \
|
||||||
tsl_tsm.c
|
tsl_tsm.c
|
||||||
|
|
||||||
|
libosmo_tcap_la_CFLAGS = $(CFLAG_VISIBILITY)
|
||||||
|
|
||||||
tcap_test_SOURCES = tcap_test.c
|
tcap_test_SOURCES = tcap_test.c
|
||||||
tcap_test_LDADD = -losmo-tcap -losmo-asn1-tcap -lm
|
tcap_test_LDADD = -losmo-tcap -losmo-asn1-tcap -lm
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ static int udp_read_cb(struct bsc_fd *fd)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tcap_transport_entity *tcap_transp_udp_create(struct sockaddr_storage *local_addr)
|
LIB_EXPORTED struct tcap_transport_entity *tcap_transp_udp_create(struct sockaddr_storage *local_addr)
|
||||||
{
|
{
|
||||||
struct tcap_transport_entity *tte = talloc_zero(NULL, struct tcap_transport_entity);
|
struct tcap_transport_entity *tte = talloc_zero(NULL, struct tcap_transport_entity);
|
||||||
struct write_queue *wq;
|
struct write_queue *wq;
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
#include <osmocom/tcap/ComponentPortion.h>
|
#include <osmocom/tcap/ComponentPortion.h>
|
||||||
#include <osmocom/tcap/ABRT-apdu.h>
|
#include <osmocom/tcap/ABRT-apdu.h>
|
||||||
|
|
||||||
|
#if HAVE_VISIBILITY
|
||||||
|
#define LIB_EXPORTED __attribute__((__visibility__("default")))
|
||||||
|
#else
|
||||||
|
#define LIB_EXPORTED
|
||||||
|
#endif
|
||||||
|
|
||||||
struct tcap_component {
|
struct tcap_component {
|
||||||
struct llist_head list;
|
struct llist_head list;
|
||||||
|
|
|
@ -32,7 +32,7 @@ static const struct value_string tcap_prim_names[] = {
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *tcap_prim_name(enum tcap_primitive prim)
|
LIB_EXPORTED const char *tcap_prim_name(enum tcap_primitive prim)
|
||||||
{
|
{
|
||||||
return get_value_string(tcap_prim_names, prim);
|
return get_value_string(tcap_prim_names, prim);
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ int tcap_tcu_result_nl_ind()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int tcap_user_req_comp(enum tcap_primitive prim, struct tcap_component_ind *tcci)
|
LIB_EXPORTED int tcap_user_req_comp(enum tcap_primitive prim, struct tcap_component_ind *tcci)
|
||||||
{
|
{
|
||||||
struct tcap_dialogue *td;
|
struct tcap_dialogue *td;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
@ -175,7 +175,7 @@ int tcap_user_req_comp(enum tcap_primitive prim, struct tcap_component_ind *tcci
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
int tcap_user_req_dialg(enum tcap_primitive prim, struct tcap_dialg_ind *tcdi)
|
LIB_EXPORTED int tcap_user_req_dialg(enum tcap_primitive prim, struct tcap_dialg_ind *tcdi)
|
||||||
{
|
{
|
||||||
struct tcap_dialogue *td;
|
struct tcap_dialogue *td;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
Loading…
Reference in New Issue