ctrl: Introduce libosmoctrl.map to avoid unintended exports

There are some symbols for use between control_cmd.c and control_if.c,
which are not supposed to be exported publicly.  Let's make sure we
keep those symbols local.

Change-Id: Ia85f36a9c4b2ebf4003718e0a230959638370320
changes/31/9331/2
Harald Welte 5 years ago
parent 3b8921fae2
commit ed6057841d
  1. 2
      configure.ac
  2. 2
      src/ctrl/Makefile.am
  3. 34
      src/ctrl/libosmoctrl.map

@ -47,11 +47,13 @@ case $host in
LTLDFLAGS_OSMOGB='-Wl,--version-script=$(srcdir)/libosmogb.map'
LTLDFLAGS_OSMOGSM='-Wl,--version-script=$(srcdir)/libosmogsm.map'
LTLDFLAGS_OSMOCODING='-Wl,--version-script=$(srcdir)/libosmocoding.map'
LTLDFLAGS_OSMOCTRL='-Wl,--version-script=$(srcdir)/libosmoctrl.map'
;;
esac
AC_SUBST(LTLDFLAGS_OSMOGB)
AC_SUBST(LTLDFLAGS_OSMOGSM)
AC_SUBST(LTLDFLAGS_OSMOCODING)
AC_SUBST(LTLDFLAGS_OSMOCTRL)
dnl checks for header files
AC_HEADER_STDC

@ -20,4 +20,6 @@ if ENABLE_VTY
libosmoctrl_la_SOURCES += control_vty.c
endif
EXTRA_DIST = libosmoctrl.map
endif

@ -0,0 +1,34 @@
LIBOSMOCTRL_1.0 {
global:
ctrl_cmd_cpy;
ctrl_cmd_create;
ctrl_cmd_def_is_zombie;
ctrl_cmd_def_make;
ctrl_cmd_def_send;
#ctrl_cmd_exec;
ctrl_cmd_exec_from_string;
ctrl_cmd_handle;
ctrl_cmd_install;
ctrl_cmd_make;
ctrl_cmd_parse;
ctrl_cmd_parse2;
ctrl_cmd_send;
ctrl_cmd_send_to_all;
ctrl_cmd_send_trap;
ctrl_cmd_trap;
ctrl_handle_alloc; /* could be removed? */
ctrl_handle_alloc2; /* could be removed? */
ctrl_handle_msg; /* only used in unit test */
ctrl_interface_setup;
ctrl_interface_setup_dynip;
ctrl_interface_setup_dynip2;
ctrl_lookup_register;
ctrl_parse_get_num;
ctrl_type_vals;
ctrl_vty_get_bind_addr;
ctrl_vty_init;
osmo_ctrl_conn_alloc;
local: *;
};
Loading…
Cancel
Save