mirror of https://github.com/tailix/libshmemq.git
Add struct Shmemq
This commit is contained in:
parent
5e6144618e
commit
c7ae29a673
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue