Add attribute "is_consumer" to struct Shmemq

This commit is contained in:
Alex Kotov 2020-12-13 14:48:40 +05:00
parent c7ae29a673
commit 1638bcf10c
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ AC_TYPE_SIZE_T
AC_FUNC_MMAP
AC_CHECK_HEADER_STDBOOL
AC_CHECK_HEADERS([stddef.h])
AC_CHECK_FUNCS([ftruncate])

View File

@ -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;
};