diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-05-01 00:09:40 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-05-01 00:09:40 -0400 |
commit | 0c1b29f06ddcfda2cf47461f846ddee0a320567d (patch) | |
tree | b3d9d103ebf97a08c4bb3363b644eed2d217551d /include/osm | |
parent | c0d309b3be94b89d421ab265ebdfc34438f5dfe6 (diff) |
init make
Diffstat (limited to 'include/osm')
-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); + |