diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-02-02 06:40:10 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-02-02 06:40:10 +0100 |
commit | 64b55e7e1236121ea4197d9a37cfec43b196cfe8 (patch) | |
tree | eb16f4a2d3eae3d9485eccbd923812a56b627979 /ecp/src/msgq.h | |
parent | a4401c99c2a54ba9a964317cbff915d40d16e470 (diff) |
moved ecp, platform -> src
Diffstat (limited to 'ecp/src/msgq.h')
-rw-r--r-- | ecp/src/msgq.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ecp/src/msgq.h b/ecp/src/msgq.h deleted file mode 100644 index 394209f..0000000 --- a/ecp/src/msgq.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifdef ECP_WITH_MSGQ - -#define ECP_MSGQ_MAX_MSG 32 - -typedef struct ECPConnMsgQ { - unsigned short idx_w[ECP_MAX_MTYPE]; - unsigned short idx_r[ECP_MAX_MTYPE]; - ecp_seq_t seq_start; - ecp_seq_t seq_max; - ecp_seq_t seq_msg[ECP_MAX_MTYPE][ECP_MSGQ_MAX_MSG]; - pthread_cond_t cond[ECP_MAX_MTYPE]; - pthread_mutex_t mutex; -} ECPConnMsgQ; - -int ecp_conn_msgq_create(ECPConnMsgQ *msgq); -void ecp_conn_msgq_destroy(ECPConnMsgQ *msgq); -int ecp_conn_msgq_start(ECPConnMsgQ *msgq, ecp_seq_t seq); - -int ecp_conn_msgq_push(struct ECPConnection *conn, ecp_seq_t seq, unsigned char mtype); -ssize_t ecp_conn_msgq_pop(struct ECPConnection *conn, unsigned char mtype, unsigned char *msg, size_t msg_size, ecp_cts_t timeout); - -#endif /* ECP_WITH_MSGQ */
\ No newline at end of file |