From 0c1b29f06ddcfda2cf47461f846ddee0a320567d Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 1 May 2024 00:09:40 -0400 Subject: init make --- include/osm/bind.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/osm/bind.h (limited to 'include/osm/bind.h') diff --git a/include/osm/bind.h b/include/osm/bind.h new file mode 100644 index 0000000..5107c52 --- /dev/null +++ b/include/osm/bind.h @@ -0,0 +1,14 @@ + +/** + * Bind to the next available onboard socket in the given directory + * sock_dir - The directory containing osm sockets (or null for the default) + */ +int osm_bind_local(int sockfd, const char *sock_dir); + +/** + * Bind a new onboard socket + * sock_dir - The directory containing osm sockets (or null for the default) + * return - a negitve number on error, or the socket fd on success + */ +int osm_open_onboard(char *sock_dir); + -- cgit v1.2.3