summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/socket.h
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <anayuso@sysmocom.de>2014-03-24 13:02:00 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-26 19:50:46 +0100
commit5ade61a4f49bbc5bdff271b3eaff0fc4ffd2fb60 (patch)
tree5315e16dffbc9adde0d9a65a6f5a8647c2c0afbd /include/osmocom/core/socket.h
parentcc0645b26df92b007e7f4f397607ee235c58172e (diff)
src/socket: Adding unix domain socket support
Added some function for adding the unix domain socket support. Signed-off-by: Alvaro Neira Ayuso <anayuso@sysmocom.de>
Diffstat (limited to 'include/osmocom/core/socket.h')
-rw-r--r--include/osmocom/core/socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h
index f15a03a9..cb1b7a82 100644
--- a/include/osmocom/core/socket.h
+++ b/include/osmocom/core/socket.h
@@ -30,6 +30,12 @@ int osmo_sock_init_sa(struct sockaddr *ss, uint16_t type,
int osmo_sockaddr_is_local(struct sockaddr *addr, unsigned int addrlen);
+int osmo_sock_unix_init(uint16_t type, uint8_t proto,
+ const char *socket_path, unsigned int flags);
+
+int osmo_sock_unix_init_ofd(struct osmo_fd *ofd, uint16_t type, uint8_t proto,
+ const char *socket_path, unsigned int flags);
+
/*! @} */
#endif /* _OSMOCORE_SOCKET_H */