[common] CountedBuffer: cosmetics

This commit is contained in:
Geoffrey McRae 2021-08-09 14:07:39 +10:00
parent 69f6532b8d
commit 30ad28ffd1

View File

@ -23,14 +23,16 @@
#include <stddef.h>
struct CountedBuffer {
typedef struct CountedBuffer
{
_Atomic(size_t) refs;
size_t size;
char data[];
};
}
CountedBuffer;
struct CountedBuffer * countedBufferNew(size_t size);
void countedBufferAddRef(struct CountedBuffer * buffer);
void countedBufferRelease(struct CountedBuffer ** buffer);
void countedBufferAddRef(CountedBuffer * buffer);
void countedBufferRelease(CountedBuffer ** buffer);
#endif