summaryrefslogtreecommitdiff
path: root/code/fe310/eos/net.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-12-06 20:04:08 +0100
committerUros Majstorovic <majstor@majstor.org>2019-12-06 20:04:08 +0100
commit0bcbb62eb408e6fcbfe78fbc2756dfb1b9ae6a37 (patch)
tree8517595e723686fd8954f0640c5fc40c36e88a67 /code/fe310/eos/net.h
parentbc37c471fbb233a2a17119091b10f7adf8045a95 (diff)
net refactor: alloc reverted to take void arg; EOS_NET_FLAGs renamed
Diffstat (limited to 'code/fe310/eos/net.h')
-rw-r--r--code/fe310/eos/net.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/code/fe310/eos/net.h b/code/fe310/eos/net.h
index a68cd77..127942c 100644
--- a/code/fe310/eos/net.h
+++ b/code/fe310/eos/net.h
@@ -1,18 +1,18 @@
#include <stdint.h>
#include "event.h"
-#define EOS_NET_FLAG_BUF_FREE 0x1
-#define EOS_NET_FLAG_BUF_ACQ 0x2
+#define EOS_NET_FLAG_BACQ 0x1
+#define EOS_NET_FLAG_BFREE 0x2
-#define EOS_NET_MTYPE_SOCK 1
-#define EOS_NET_MTYPE_AUDIO 2
+#define EOS_NET_MTYPE_SOCK 1
+#define EOS_NET_MTYPE_AUDIO 2
-#define EOS_NET_MTYPE_WIFI 5
-#define EOS_NET_MTYPE_CELL 6
-#define EOS_NET_MTYPE_SIP 7
-#define EOS_NET_MTYPE_APP 8
+#define EOS_NET_MTYPE_WIFI 5
+#define EOS_NET_MTYPE_CELL 6
+#define EOS_NET_MTYPE_SIP 7
+#define EOS_NET_MTYPE_APP 8
-#define EOS_NET_MAX_MTYPE 8
+#define EOS_NET_MAX_MTYPE 8
void eos_net_xchg_done(void);
@@ -20,8 +20,9 @@ void eos_net_init(void);
void eos_net_start(void);
void eos_net_stop(void);
void eos_net_set_handler(unsigned char type, eos_evt_fptr_t handler, uint8_t flags);
-int eos_net_acquire(unsigned char reserved);
+int _eos_net_acquire(unsigned char reserved);
+void eos_net_acquire(void);
void eos_net_release(void);
-unsigned char *eos_net_alloc(unsigned char acquired);
+unsigned char *eos_net_alloc(void);
void eos_net_free(unsigned char *buffer, unsigned char more);
int eos_net_send(unsigned char type, unsigned char *buffer, uint16_t len, unsigned char more);