summaryrefslogtreecommitdiff
path: root/tools/src/afk.h
diff options
context:
space:
mode:
authormagh <magh@maghmogh.com>2023-03-06 18:44:55 -0600
committermagh <magh@maghmogh.com>2023-03-06 18:44:55 -0600
commite80d9d8871b325a04b18f90a9ea4bb7fd148fb25 (patch)
tree79dbdb8506b7ff1e92549188d1b94cfc0b3503ae /tools/src/afk.h
add m1n1HEADmaster
Diffstat (limited to 'tools/src/afk.h')
-rw-r--r--tools/src/afk.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/src/afk.h b/tools/src/afk.h
new file mode 100644
index 0000000..e76ade3
--- /dev/null
+++ b/tools/src/afk.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: MIT */
+
+#ifndef DCP_AFK_H
+#define DCP_AFK_H
+
+#include "rtkit.h"
+
+typedef struct afk_epic_ep afk_epic_ep_t;
+
+afk_epic_ep_t *afk_epic_init(rtkit_dev_t *rtkit, int endpoint);
+int afk_epic_shutdown(afk_epic_ep_t *epic);
+
+int afk_epic_start_interface(afk_epic_ep_t *epic, char *name, size_t insize, size_t outsize);
+int afk_epic_command(afk_epic_ep_t *epic, int channel, u16 code, void *txbuf, size_t txsize,
+ void *rxbuf, size_t *rxsize);
+
+#endif