From 4384cd203a958373cf0ab959afb688f9eeba05fc Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Wed, 4 Jan 2017 15:25:15 +0100 Subject: ipcpd: Add boot and shutdown operations These operations separe the starting and joining of the main ipcp threads into ipcp_boot() and ipcp_shutdown() operations. This allows the proper cleanup of user data and user threads after the IPCP is requested to shut down. --- src/ipcpd/ipcp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ipcpd/ipcp.h') diff --git a/src/ipcpd/ipcp.h b/src/ipcpd/ipcp.h index 6910115e..ae5a56da 100644 --- a/src/ipcpd/ipcp.h +++ b/src/ipcpd/ipcp.h @@ -55,6 +55,10 @@ struct ipcp { int ipcp_init(enum ipcp_type type, struct ipcp_ops * ops); +int ipcp_boot(void); + +void ipcp_shutdown(void); + void ipcp_fini(void); void ipcp_set_state(enum ipcp_state state); -- cgit v1.2.3