#ifndef __ICQ_QUEUE_H #define __ICQ_QUEUE_H #include #include "tmacros.h" #include "icq_spinlock.h" #include "icq_configuration.h" typedef struct { char sender_id[CONFIGURE_ICQ_MESSAGE_SIZE]; uint32_t msg_number; }icq_message_t; typedef struct { icq_message_t queue[CONFIGURE_ICQ_INTERCOREQUEUE_SIZE]; icq_spinlock_t spinLock; uint32_t msg_counter; uint32_t write_ptx; uint32_t read_ptx; uint32_t msg_received; }icq_queue_t; icq_queue_t* icq_queue_init(); #endif