2024-08-29 07:01:51 +00:00
|
|
|
#ifndef GEN_QREFCOUNT_H
|
|
|
|
#define GEN_QREFCOUNT_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__RefCount)
|
|
|
|
typedef QtPrivate::RefCount QtPrivate__RefCount;
|
|
|
|
#else
|
|
|
|
class QtPrivate__RefCount;
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
typedef struct QtPrivate__RefCount QtPrivate__RefCount;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
bool QtPrivate__RefCount_Ref(QtPrivate__RefCount* self);
|
|
|
|
bool QtPrivate__RefCount_Deref(QtPrivate__RefCount* self);
|
|
|
|
bool QtPrivate__RefCount_SetSharable(QtPrivate__RefCount* self, bool sharable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QtPrivate__RefCount_IsSharable(const QtPrivate__RefCount* self);
|
|
|
|
bool QtPrivate__RefCount_IsStatic(const QtPrivate__RefCount* self);
|
|
|
|
bool QtPrivate__RefCount_IsShared(const QtPrivate__RefCount* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QtPrivate__RefCount_InitializeOwned(QtPrivate__RefCount* self);
|
|
|
|
void QtPrivate__RefCount_InitializeUnsharable(QtPrivate__RefCount* self);
|
|
|
|
void QtPrivate__RefCount_Delete(QtPrivate__RefCount* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|