summaryrefslogtreecommitdiff
path: root/include/ouroboros/sockets.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ouroboros/sockets.h')
-rw-r--r--include/ouroboros/sockets.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ouroboros/sockets.h b/include/ouroboros/sockets.h
index 45d7a27d..69d86cd0 100644
--- a/include/ouroboros/sockets.h
+++ b/include/ouroboros/sockets.h
@@ -28,6 +28,9 @@
#include <sys/types.h>
+#include "irmd_messages.pb-c.h"
+typedef IrmMsg irm_msg_t;
+
#define IRM_SOCK_PATH "/tmp/irm_sock"
#define IRM_MSG_BUF_SIZE 256
@@ -100,6 +103,8 @@ int client_socket_open(char * file_name);
int send_irmd_msg(struct irm_msg * msg);
struct irm_msg * send_recv_irmd_msg(struct irm_msg * msg);
+int send_irm_msg(irm_msg_t * msg);
+
/* Caller has to free the buffer */
buffer_t * serialize_irm_msg(struct irm_msg * msg);
buffer_t * serialize_ipcp_msg(struct ipcp_msg * msg);