summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.h
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-05-14 21:54:51 +0200
committerSander Vrijders <[email protected]>2016-05-14 21:54:51 +0200
commit32eed3193d2451e7cbdfb0b81e8d2d7e99cc5a31 (patch)
tree0e73f7e2466eeaf2d987a2131f6a89d110d1f99e /src/ipcpd/ipcp.h
parentaf4097f51b7bd4f37212c2d49f0596779d79c36e (diff)
parentfcfe96e834a10350cebad094922ad1f2f8a05ccb (diff)
downloadouroboros-32eed3193d2451e7cbdfb0b81e8d2d7e99cc5a31.tar.gz
ouroboros-32eed3193d2451e7cbdfb0b81e8d2d7e99cc5a31.zip
Merged in dstaesse/ouroboros/be-udp (pull request #82)
Be udp
Diffstat (limited to 'src/ipcpd/ipcp.h')
-rw-r--r--src/ipcpd/ipcp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ipcpd/ipcp.h b/src/ipcpd/ipcp.h
index 393af994..c9002d4d 100644
--- a/src/ipcpd/ipcp.h
+++ b/src/ipcpd/ipcp.h
@@ -23,6 +23,8 @@
#ifndef IPCPD_IPCP_H
#define IPCPD_IPCP_H
+#include <ouroboros/rw_lock.h>
+
#include "ipcp-ops.h"
#include "ipcp-data.h"
@@ -38,11 +40,13 @@ enum ipcp_state {
struct ipcp {
struct ipcp_data * data;
struct ipcp_ops * ops;
+ int irmd_fd;
enum ipcp_state state;
- int irmd_fd;
+ rw_lock_t state_lock;
};
+struct ipcp * ipcp_instance_create();
void * ipcp_main_loop(void * o);
void * ipcp_sdu_loop(void * o);
int ipcp_arg_check(int argc, char * argv[]);