summaryrefslogtreecommitdiff
path: root/include/hybbx/types.h
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-08 03:54:55 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-08 03:54:55 +0000
commit20cb29c2f8c5c87bc590896854a20b1473ceb358 (patch)
tree2857f41513a56ad41af97b57362639298aa7f033 /include/hybbx/types.h
#2
Diffstat (limited to 'include/hybbx/types.h')
-rw-r--r--include/hybbx/types.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/hybbx/types.h b/include/hybbx/types.h
new file mode 100644
index 0000000..775a711
--- /dev/null
+++ b/include/hybbx/types.h
@@ -0,0 +1,42 @@
+#ifndef HYBBX_TYPES_H
+#define HYBBX_TYPES_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef enum hybbx_result {
+ HYBBX_OK = 0,
+ /** Input is a local/mailbox command (not a HyBBX '/' command). */
+ HYBBX_LOCAL_CMD = 1,
+ /** Session should be closed (e.g. /exit). */
+ HYBBX_SESSION_END = 2,
+ HYBBX_ERR_INVALID = -1,
+ HYBBX_ERR_NOMEM = -2,
+ HYBBX_ERR_NOT_FOUND = -3,
+ HYBBX_ERR_IO = -4,
+ HYBBX_ERR_UNSUPPORTED = -5,
+ HYBBX_ERR_BUSY = -6,
+ HYBBX_ERR_DENIED = -7
+} hybbx_result_t;
+
+typedef enum hybbx_transport_kind {
+ HYBBX_TRANSPORT_TELNET = 1,
+ HYBBX_TRANSPORT_PACKET_RADIO = 2,
+ HYBBX_TRANSPORT_CIRCUIT = 3,
+ HYBBX_TRANSPORT_ARDOP = 4,
+ HYBBX_TRANSPORT_CRDOP = 5,
+ HYBBX_TRANSPORT_SSH = 6,
+ HYBBX_TRANSPORT_WEBSOCKET = 7,
+ HYBBX_TRANSPORT_BAYCOM = 8,
+ HYBBX_TRANSPORT_MAINS_PROXY = 9,
+} hybbx_transport_kind_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* HYBBX_TYPES_H */
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com