Add struct Shmemq

This commit is contained in:
Alex Kotov 2020-12-13 14:44:03 +05:00
parent 5e6144618e
commit c7ae29a673
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,8 @@
#include <stddef.h>
#define SHMEMQ_NAME_SIZE_MAX ((size_t)255)
#define SHMEMQ_FRAME_SIZE ((size_t)8)
#define SHMEMQ_FRAME_DATA_SIZE \
@ -32,6 +34,11 @@ struct Shmemq_Buffer {
struct Shmemq_Frame frames[];
};
struct Shmemq {
char name[SHMEMQ_NAME_SIZE_MAX];
struct Shmemq_Buffer *buffer;
};
#ifdef __cplusplus
}
#endif