aboutsummaryrefslogtreecommitdiff
path: root/private_include/wip/prv/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'private_include/wip/prv/udp.h')
-rw-r--r--private_include/wip/prv/udp.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/private_include/wip/prv/udp.h b/private_include/wip/prv/udp.h
new file mode 100644
index 0000000..48422fe
--- /dev/null
+++ b/private_include/wip/prv/udp.h
@@ -0,0 +1,21 @@
+/*
+ * wip, a small TCP/IP stack.
+ * Copyright (C) 2025 Xavier Del Campo Romero
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef WIP_PRV_UDP_H
+#define WIP_PRV_UDP_H
+
+#include <wip/wip.h>
+#include <stddef.h>
+
+void *wip_udp_alloc(struct wip *const w);
+enum wip_state wip_udp_rx(struct wip *w, const void *buf, size_t n, void *args);
+int wip_udp_tx(struct wip *w, void *buf, size_t n, void *args);
+void wip_udp_free(struct wip *w, void *args);
+
+#endif