summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2023-11-27 14:43:09 +0100
committerSander Vrijders <sander@ouroboros.rocks>2023-11-29 09:57:29 +0100
commitc1d679506180bc23241fe14818c0a2dbbcbe3cef (patch)
treeaf8cd0304b7fc812270a37fd751c503e43331b0a /src/lib
parent7d7228fa0f9b5593fead5cfcb10bfc5bfaad4d08 (diff)
downloadouroboros-c1d679506180bc23241fe14818c0a2dbbcbe3cef.tar.gz
ouroboros-c1d679506180bc23241fe14818c0a2dbbcbe3cef.zip
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 <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/irm.c2
-rw-r--r--src/lib/pb/irm.proto4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c
index 75071260..4c744e8a 100644
--- a/src/lib/irm.c
+++ b/src/lib/irm.c
@@ -190,7 +190,7 @@ int irm_disconnect_ipcp(pid_t pid,
return ret;
}
-ssize_t irm_list_ipcps(struct ipcp_info ** ipcps)
+ssize_t irm_list_ipcps(struct ipcp_list_info ** ipcps)
{
irm_msg_t msg = IRM_MSG__INIT;
irm_msg_t * recv_msg;
diff --git a/src/lib/pb/irm.proto b/src/lib/pb/irm.proto
index 49afa2e4..f910baeb 100644
--- a/src/lib/pb/irm.proto
+++ b/src/lib/pb/irm.proto
@@ -53,7 +53,7 @@ enum irm_msg_code {
IRM_REPLY = 25;
}
-message ipcp_info_msg {
+message ipcp_list_msg {
required uint32 pid = 1;
required uint32 type = 2;
required string name = 3;
@@ -80,7 +80,7 @@ message irm_msg {
optional qosspec_msg qosspec = 12;
optional ipcp_config_msg conf = 13;
optional uint32 opts = 14;
- repeated ipcp_info_msg ipcps = 15;
+ repeated ipcp_list_msg ipcps = 15;
repeated name_info_msg names = 16;
optional uint32 timeo_sec = 17;
optional uint32 timeo_nsec = 18;