summaryrefslogtreecommitdiff
path: root/src/lib/ipcp.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-03-11 16:52:28 +0100
committerSander Vrijders <[email protected]>2016-03-11 16:52:28 +0100
commitf5cf4e478bf7dec70dc22d80de706f82ef4b38f1 (patch)
tree60160c5cac28eb8cfcd376428429e03cf2e7e203 /src/lib/ipcp.c
parentd68e4e5e540720d9b02e2062e3982f1c438eb1e0 (diff)
downloadouroboros-f5cf4e478bf7dec70dc22d80de706f82ef4b38f1.tar.gz
ouroboros-f5cf4e478bf7dec70dc22d80de706f82ef4b38f1.zip
lib: Add helpers for RINA names
This adds helper functions for RINA names, to aid with handling them.
Diffstat (limited to 'src/lib/ipcp.c')
-rw-r--r--src/lib/ipcp.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c
index 718b5f3e..935330d5 100644
--- a/src/lib/ipcp.c
+++ b/src/lib/ipcp.c
@@ -22,42 +22,43 @@
#include <ouroboros/ipcp.h>
-struct ipcp {};
-
-struct ipcp * ipcp_create(rina_name_t name,
- char * ipcp_type)
+int ipcp_create(rina_name_t name,
+ char * ipcp_type)
{
- return NULL;
+ /* zero means failure */
+ return 0;
}
-int ipcp_destroy(struct ipcp * instance)
+int ipcp_destroy(int pid)
{
return -1;
}
-int ipcp_reg(struct ipcp * instance,
+int ipcp_reg(int pid,
char ** difs,
size_t difs_size)
{
return -1;
}
-int ipcp_unreg(struct ipcp * instance,
+int ipcp_unreg(int pid,
char ** difs,
size_t difs_size)
{
return -1;
}
-int ipcp_bootstrap(struct ipcp * instance,
+int ipcp_bootstrap(int pid,
struct dif_config conf)
{
return -1;
}
-int ipcp_enroll(struct ipcp * instance,
+int ipcp_enroll(int pid,
char * dif_name,
- rina_name_t member)
+ rina_name_t member,
+ char ** n_1_difs,
+ ssize_t n_1_difs_size)
{
return -1;
}