libosmocore/src
Neels Hofmeyr ea66852a62 ctrl: allow more nodes than those in enum ctrl_node_type
Add ctrl_interface_setup_dynip2() to add a node_count parameter, which can be
used to define more ctrl nodes without having to merge a patch to libosmocore.

In consequence, also add ctrl_handle_alloc2(), since
ctrl_interface_setup_dynip() uses ctrl_handle_alloc() to allocate the node
slots, and add node_count param to static ctrl_init().

Passing zero as node_count indicates to use the default of _LAST_CTRL_NODE as
before, i.e. to not define more ctrl nodes. Assert that we never allocate less
than _LAST_CTRL_NODE slots.

The current ctrl_interface_setup_dynip() and ctrl_handle_alloc() become simple
wrappers that pass zero as node_count. Their use is still valid and they do not
need to be deprecated.

The API comment to ctrl_interface_setup_dynip2() explains how to define more
node IDs.

This patch was verified to work by osmo-hlr.git change
I98ee6a06b3aa6a67adb868e0b63b0e04eb42eb50 which adds two node IDs for use by
osmo-hlr only.

Change-Id: I1bd62ae0d4eefde7e1517db15a2155640a1bab58
2017-10-23 22:31:01 +00:00
..
codec doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
coding Makefile.am: fix missing LTLDFLAGS for libosmocoding 2017-08-31 17:53:04 +07:00
ctrl ctrl: allow more nodes than those in enum ctrl_node_type 2017-10-23 22:31:01 +00:00
gb GPRS: log NS socket 2017-10-23 08:39:42 +00:00
gsm Make osmo_apn_to_str() more robust 2017-10-20 18:19:58 +00:00
pseudotalloc doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
sim doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
vty [doc] Don't add libosmovty bits to libosmocore groups 2017-10-16 15:17:03 +02:00
Makefile.am Rename 'statistics.c' to 'counter.c' 2017-10-15 19:51:35 +02:00
application.c doxygen: adjust copyright to include 2017 2017-09-28 19:41:57 +02:00
backtrace.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
bitcomp.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
bits.c [doc] bits.c: Better / more Doxygen documentation 2017-10-16 14:19:12 +02:00
bitvec.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
conv.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
conv_acc.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
conv_acc_generic.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
conv_acc_sse.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
conv_acc_sse_avx.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
conv_acc_sse_impl.h Ensure __always_inline is defined on operating systems that don't have it 2017-10-09 11:00:56 +08:00
counter.c [doc] counter.[ch] Add Doxygen API documentation 2017-10-16 14:18:54 +02:00
crc16.c [doc] Put CRC-16 and generic CRC code in one Doxygen module 2017-10-16 14:29:26 +02:00
crcXXgen.c.tpl [doc] Put CRC-16 and generic CRC code in one Doxygen module 2017-10-16 14:29:26 +02:00
fsm.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
gsmtap_util.c chantype_rsl2gsmtap/gsmtap2rsl: Fix PDCH channel type conversion 2017-07-28 21:26:10 +00:00
logging.c [doc] src/logging.c: Fix Doxygen syntax to make logging.c show up in logging group 2017-10-16 14:19:00 +02:00
logging_gsmtap.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
logging_syslog.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
loggingrb.c [doc] Introductory text on what the logging ring buffer is about 2017-10-16 14:37:31 +02:00
macaddr.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
msgb.c add function msgb_printf() to print formatted text into msg buf 2017-10-22 20:09:26 +00:00
msgfile.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
panic.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
plugin.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
prbs.c Add pseudo-random bit sequence generator to libosmcoore 2017-07-10 23:42:02 +02:00
prim.c [doc] Expand Doxuygen documentation for osmo_prim 2017-10-16 14:52:37 +02:00
rate_ctr.c [doc] rate_ctr: Extend Doxygen API documentation with human-readable text on its use 2017-10-16 14:19:03 +02:00
rbtree.c fix FSF address in sources/headers 2015-11-12 13:46:05 +01:00
select.c add osmo_fd_setup() convenience function to fill-in osmo_fd 2017-08-12 11:43:14 +02:00
sercomm.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
serial.c serial.c: Use pragma message instead of warning 2017-06-23 11:06:37 +02:00
signal.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
socket.c socket: add function osmo_sock_local_ip() to query local ip 2017-10-23 08:47:38 +00:00
stat_item.c [doc] stat_item: Complete doxygen documentation for API 2017-10-16 14:18:50 +02:00
stats.c [doc] Add Doxygen API documentation for stats.c and stats_statsd.c 2017-10-16 14:18:56 +02:00
stats_statsd.c [doc] Add Doxygen API documentation for stats.c and stats_statsd.c 2017-10-16 14:18:56 +02:00
strrb.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
timer.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
timer_gettimeofday.c Expand osmo_gettimeofday() docs 2017-10-23 17:53:11 +00:00
utils.c [doc] Doxygen documentation on osmo_hexdump print buffer size 2017-10-16 14:33:11 +02:00
write_queue.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00