blob: 0ba231b73a2ec83dfa82842aa0185ed5a1612699 [file] [log] [blame]
Harald Welte9852e222020-03-08 10:22:14 +01001/*
2 * (C) 2020 by Harald Welte <laforge@gnumonks.org>
3 * All Rights Reserved
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 */
19
20#include <osmocom/ctrl/control_if.h>
21#include <osmocom/mgcp/mgcp.h>
22
23
24static int mgw_ctrl_node_lookup(void *data, vector vline, int *node_type,
25 void **node_data, int *i)
26{
27 return 0;
28}
29
30
31struct ctrl_handle *mgw_ctrl_interface_setup(struct mgcp_config *cfg,
32 const char *bind_addr, uint16_t port)
33{
34 return ctrl_interface_setup_dynip2(cfg, bind_addr, port, mgw_ctrl_node_lookup,
35 _LAST_CTRL_NODE);
36}