Commit Graph

11 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 43a11db879 ctrl: Fix the signature of the string control commands
Like with all type unsafe callbacks we will need to cast from
void to the dtype. This addresses some compiler warnings.

Make it possible to only include the control_cmd.h to use the
macros defined in this file.
2014-08-21 15:34:15 +02:00
Daniel Willmann 9c97493c5c libctrl, osmo-bsc: Get rid of net prefix
net is now implicit in the root node
2014-08-21 15:34:15 +02:00
Daniel Willmann 35a1b3b493 libctrl: Add function ctrl_cmd_send_to_all
Sends a command to all ctrl connections except the one it originated
from.
2014-08-21 15:34:14 +02:00
Daniel Willmann f2e75d4371 libctrl: Add trap helper function 2014-08-21 15:34:14 +02:00
Daniel Willmann 782974b6c9 libctrl: Change controlif_setup so it returns the ctrl handle
nat: Catch up with controlif_setup API change
We now save a control handle reference in the nat
osmo-bsc: Catch up with controlif_setup API change
We now save a control handle reference in the gsm network
2014-08-21 15:34:14 +02:00
Holger Hans Peter Freyther a6b34015af libctrl: Add a function to create the cmd 2014-08-21 15:34:13 +02:00
Daniel Willmann f7c74e5879 libctrl: Mark the cmd set/get/verify functions static 2014-08-21 15:34:13 +02:00
Harald Welte 18b70b5b81 controlif: declare controlif_setup() in control_cmd.h
this avoids us to copy+paste external declarations over all 'main'
files.
2014-08-21 15:34:12 +02:00
Daniel Willmann 8b7a9626a2 libctrl: Add ctrl_cmd_cpy() to copy a command 2014-08-21 15:34:12 +02:00
Daniel Willmann fcf010f721 libctrl: Add macros to help define commands 2014-08-21 15:34:12 +02:00
Daniel Willmann 1264cb404f Add libctrl, an SNMP-like control interface
In contrast to the VTY interface the control interface is meant to be
used by programs.
This patch adds basic support, no commands are defined.
2014-08-21 15:34:11 +02:00