some more mqtt stuff

This commit is contained in:
2020-06-17 16:03:32 +02:00
parent 034ad78ceb
commit e1a8e7d63e
6 changed files with 179 additions and 74 deletions

View File

@ -13,10 +13,10 @@ typedef struct {
uint32_t bufferWriteIdx;
pthread_mutex_t eventMutex;
pthread_cond_t eventSignal;
} t_ringbuffer;
} ringbuffer_t;
void ringbufferInit(t_ringbuffer *handle);
void ringbufferPut(t_ringbuffer *handle, void *f);
void *ringbufferGet(t_ringbuffer *handle);
void ringbufferInit(ringbuffer_t *handle);
void ringbufferPut(ringbuffer_t *handle, void *f);
void *ringbufferGet(ringbuffer_t *handle);
#endif // _RINGBUFFER_H_