mirror of https://github.com/tailix/libshmemq.git
Add attribute "is_consumer" to struct Shmemq
This commit is contained in:
parent
c7ae29a673
commit
1638bcf10c
|
@ -28,6 +28,7 @@ AC_TYPE_SIZE_T
|
|||
|
||||
AC_FUNC_MMAP
|
||||
|
||||
AC_CHECK_HEADER_STDBOOL
|
||||
AC_CHECK_HEADERS([stddef.h])
|
||||
|
||||
AC_CHECK_FUNCS([ftruncate])
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef SHMEMQ_INCLUDED
|
||||
#define SHMEMQ_INCLUDED 1
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define SHMEMQ_NAME_SIZE_MAX ((size_t)255)
|
||||
|
@ -36,6 +37,7 @@ struct Shmemq_Buffer {
|
|||
|
||||
struct Shmemq {
|
||||
char name[SHMEMQ_NAME_SIZE_MAX];
|
||||
bool is_consumer;
|
||||
struct Shmemq_Buffer *buffer;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue