From c1d679506180bc23241fe14818c0a2dbbcbe3cef Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 27 Nov 2023 14:43:09 +0100 Subject: lib: Rename ipcp_info to ipcp_list_info The ipcp_info struct / message contains information only used for listing IPCPs, and I will reuse the ipcp_info name for general IPCP information common to all IPCPs such as name and type. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/irm.h | 4 ++-- include/ouroboros/protobuf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/ouroboros/irm.h b/include/ouroboros/irm.h index 7fcf5357..d0c7e147 100644 --- a/include/ouroboros/irm.h +++ b/include/ouroboros/irm.h @@ -42,7 +42,7 @@ enum pol_balance { LB_INVALID }; -struct ipcp_info { +struct ipcp_list_info { pid_t pid; enum ipcp_type type; char name[NAME_SIZE]; @@ -61,7 +61,7 @@ pid_t irm_create_ipcp(const char * name, int irm_destroy_ipcp(pid_t pid); -ssize_t irm_list_ipcps(struct ipcp_info ** ipcps); +ssize_t irm_list_ipcps(struct ipcp_list_info ** ipcps); int irm_enroll_ipcp(pid_t pid, const char * dst); diff --git a/include/ouroboros/protobuf.h b/include/ouroboros/protobuf.h index c20ad8ca..da5d58fd 100644 --- a/include/ouroboros/protobuf.h +++ b/include/ouroboros/protobuf.h @@ -39,7 +39,7 @@ typedef UniConfigMsg uni_config_msg_t; typedef IpcpMsg ipcp_msg_t; #include "irm.pb-c.h" -typedef IpcpInfoMsg ipcp_info_msg_t; +typedef IpcpListMsg ipcp_list_msg_t; typedef NameInfoMsg name_info_msg_t; #include "qos.pb-c.h" -- cgit v1.2.3