diff options
author | Trumeet <yuuta@yuuta.moe> | 2022-07-26 17:17:09 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2022-07-26 17:17:09 -0700 |
commit | 8b07bf593e54dd876e30d0cb1c7c7226d0d1b1e2 (patch) | |
tree | fa39391ea1eef6e87a563ee417ba709a33dae596 /client/libacron/apps/acronc/helpers.h | |
parent | 219e4bb54375995fa377a1bcf9601a77cf6f1fee (diff) | |
download | acron-8b07bf593e54dd876e30d0cb1c7c7226d0d1b1e2.tar acron-8b07bf593e54dd876e30d0cb1c7c7226d0d1b1e2.tar.gz acron-8b07bf593e54dd876e30d0cb1c7c7226d0d1b1e2.tar.bz2 acron-8b07bf593e54dd876e30d0cb1c7c7226d0d1b1e2.zip |
feat(acronc): add acronc(1), the Acron cli
Still in early development, Windows support is incomplete.
Signed-off-by: Trumeet <yuuta@yuuta.moe>
Diffstat (limited to 'client/libacron/apps/acronc/helpers.h')
-rw-r--r-- | client/libacron/apps/acronc/helpers.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/client/libacron/apps/acronc/helpers.h b/client/libacron/apps/acronc/helpers.h new file mode 100644 index 0000000..e983439 --- /dev/null +++ b/client/libacron/apps/acronc/helpers.h @@ -0,0 +1,24 @@ +/* + * Created by yuuta on 7/24/22. + */ + +#ifndef ACRONC_HELPERS_H +#define ACRONC_HELPERS_H + +#include <libac.h> + +#ifdef WIN32 +#include <winsock2.h> +#include <ws2tcpip.h> + +#else + +#include <sys/socket.h> + +#endif + +const char *ntop(const struct sockaddr *sa); + +const char *world_name(enum ac_world world); + +#endif /* ACRONC_HELPERS_H */ |