diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osm/bind.h | 14 |
1 files changed, 14 insertions, 0 deletions
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); + |