2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QSHAREDMEMORY_H
|
|
|
|
#define GEN_QSHAREDMEMORY_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QSharedMemory;
|
|
|
|
#else
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QSharedMemory QSharedMemory;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QSharedMemory* QSharedMemory_new();
|
|
|
|
QSharedMemory* QSharedMemory_new2(const char* key, size_t key_Strlen);
|
|
|
|
QSharedMemory* QSharedMemory_new3(QObject* parent);
|
|
|
|
QSharedMemory* QSharedMemory_new4(const char* key, size_t key_Strlen, QObject* parent);
|
|
|
|
QMetaObject* QSharedMemory_MetaObject(QSharedMemory* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QSharedMemory_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QSharedMemory_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSharedMemory_SetKey(QSharedMemory* self, const char* key, size_t key_Strlen);
|
|
|
|
void QSharedMemory_Key(QSharedMemory* self, char** _out, int* _out_Strlen);
|
|
|
|
void QSharedMemory_SetNativeKey(QSharedMemory* self, const char* key, size_t key_Strlen);
|
|
|
|
void QSharedMemory_NativeKey(QSharedMemory* self, char** _out, int* _out_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QSharedMemory_Create(QSharedMemory* self, int size);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QSharedMemory_Size(QSharedMemory* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QSharedMemory_Attach(QSharedMemory* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QSharedMemory_IsAttached(QSharedMemory* self);
|
|
|
|
bool QSharedMemory_Detach(QSharedMemory* self);
|
|
|
|
bool QSharedMemory_Lock(QSharedMemory* self);
|
|
|
|
bool QSharedMemory_Unlock(QSharedMemory* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QSharedMemory_Error(QSharedMemory* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSharedMemory_ErrorString(QSharedMemory* self, char** _out, int* _out_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QSharedMemory_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QSharedMemory_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QSharedMemory_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QSharedMemory_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
bool QSharedMemory_Create2(QSharedMemory* self, int size, uintptr_t mode);
|
|
|
|
bool QSharedMemory_Attach1(QSharedMemory* self, uintptr_t mode);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSharedMemory_Delete(QSharedMemory* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|