diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-13 02:05:03 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-13 02:05:03 +0200 |
commit | 8c6c68e92d6b4c8aa5e2fcc784ed52da40845acc (patch) | |
tree | 0251bea9be01701c488f9d8719b52eeb2a64855d /code/fe310/eos/msgq.h | |
parent | 2a39fdf6d943f5738ba174368053a86304b0d8fa (diff) |
net refactor; rename cmd -> type
Diffstat (limited to 'code/fe310/eos/msgq.h')
-rw-r--r-- | code/fe310/eos/msgq.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/code/fe310/eos/msgq.h b/code/fe310/eos/msgq.h index 05a5d80..5a61a79 100644 --- a/code/fe310/eos/msgq.h +++ b/code/fe310/eos/msgq.h @@ -1,7 +1,7 @@ #include <stdint.h> typedef struct EOSMsgItem { - unsigned char cmd; + unsigned char type; unsigned char *buffer; uint16_t len; } EOSMsgItem; @@ -14,6 +14,6 @@ typedef struct EOSMsgQ { } EOSMsgQ; void eos_msgq_init(EOSMsgQ *msgq, EOSMsgItem *array, uint8_t size); -int eos_msgq_push(EOSMsgQ *msgq, unsigned char cmd, unsigned char *buffer, uint16_t len); -void eos_msgq_pop(EOSMsgQ *msgq, unsigned char *cmd, unsigned char **buffer, uint16_t *len); -void eos_msgq_get(EOSMsgQ *msgq, unsigned char cmd, unsigned char **buffer, uint16_t *len);
\ No newline at end of file +int eos_msgq_push(EOSMsgQ *msgq, unsigned char type, unsigned char *buffer, uint16_t len); +void eos_msgq_pop(EOSMsgQ *msgq, unsigned char *type, unsigned char **buffer, uint16_t *len); +void eos_msgq_get(EOSMsgQ *msgq, unsigned char type, unsigned char **buffer, uint16_t *len);
\ No newline at end of file |