mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[common] CountedBuffer: cosmetics
This commit is contained in:
parent
69f6532b8d
commit
30ad28ffd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user