From f224dbb901842b021e231e4f3d7c42e62babcdb3 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 8 Jul 2016 13:34:38 +0200 Subject: ipcpd: Deprecate ipcp_reg/ipcp_unreg --- src/lib/ipcp.c | 65 ---------------------------------------------------------- 1 file changed, 65 deletions(-) (limited to 'src/lib/ipcp.c') diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c index b0e593e4..3fd31f37 100644 --- a/src/lib/ipcp.c +++ b/src/lib/ipcp.c @@ -193,71 +193,6 @@ int ipcp_destroy(pid_t api) return 0; } -int ipcp_reg(pid_t api, - char ** dif_names, - size_t len) -{ - ipcp_msg_t msg = IPCP_MSG__INIT; - ipcp_msg_t * recv_msg = NULL; - int ret = -1; - - if (dif_names == NULL || - len == 0 || - dif_names[0] == NULL) - return -EINVAL; - - msg.code = IPCP_MSG_CODE__IPCP_REG; - msg.dif_names = dif_names; - msg.len = len; - - recv_msg = send_recv_ipcp_msg(api, &msg); - if (recv_msg == NULL) - return -1; - - if (recv_msg->has_result == false) { - ipcp_msg__free_unpacked(recv_msg, NULL); - return -1; - } - - ret = recv_msg->result; - ipcp_msg__free_unpacked(recv_msg, NULL); - - return ret; -} - -int ipcp_unreg(pid_t api, - char ** dif_names, - size_t len) -{ - ipcp_msg_t msg = IPCP_MSG__INIT; - ipcp_msg_t * recv_msg = NULL; - int ret = -1; - - if (dif_names == NULL || - len == 0 || - dif_names[0] == NULL) - return -EINVAL; - - msg.code = IPCP_MSG_CODE__IPCP_UNREG; - msg.dif_names = dif_names; - msg.len = len; - - recv_msg = send_recv_ipcp_msg(api, &msg); - if (recv_msg == NULL) - return -1; - - if (recv_msg->has_result == false) { - ipcp_msg__free_unpacked(recv_msg, NULL); - return -1; - } - - ret = recv_msg->result; - ipcp_msg__free_unpacked(recv_msg, NULL); - - return ret; -} - - int ipcp_bootstrap(pid_t api, dif_config_msg_t * conf) { -- cgit v1.2.3