mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-24 04:28:10 +00:00
[common] CountedBuffer: cosmetics
This commit is contained in:
parent
69f6532b8d
commit
30ad28ffd1
1 changed files with 6 additions and 4 deletions
|
@ -23,14 +23,16 @@
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
struct CountedBuffer {
|
typedef struct CountedBuffer
|
||||||
|
{
|
||||||
_Atomic(size_t) refs;
|
_Atomic(size_t) refs;
|
||||||
size_t size;
|
size_t size;
|
||||||
char data[];
|
char data[];
|
||||||
};
|
}
|
||||||
|
CountedBuffer;
|
||||||
|
|
||||||
struct CountedBuffer * countedBufferNew(size_t size);
|
struct CountedBuffer * countedBufferNew(size_t size);
|
||||||
void countedBufferAddRef(struct CountedBuffer * buffer);
|
void countedBufferAddRef(CountedBuffer * buffer);
|
||||||
void countedBufferRelease(struct CountedBuffer ** buffer);
|
void countedBufferRelease(CountedBuffer ** buffer);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue