mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
57 lines
2.3 KiB
C++
57 lines
2.3 KiB
C++
#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(const QSharedMemory* self);
|
|
void QSharedMemory_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
void QSharedMemory_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
|
void QSharedMemory_SetKey(QSharedMemory* self, const char* key, size_t key_Strlen);
|
|
void QSharedMemory_Key(const QSharedMemory* self, char** _out, int* _out_Strlen);
|
|
void QSharedMemory_SetNativeKey(QSharedMemory* self, const char* key, size_t key_Strlen);
|
|
void QSharedMemory_NativeKey(const QSharedMemory* self, char** _out, int* _out_Strlen);
|
|
bool QSharedMemory_Create(QSharedMemory* self, int size);
|
|
int QSharedMemory_Size(const QSharedMemory* self);
|
|
bool QSharedMemory_Attach(QSharedMemory* self);
|
|
bool QSharedMemory_IsAttached(const QSharedMemory* self);
|
|
bool QSharedMemory_Detach(QSharedMemory* self);
|
|
bool QSharedMemory_Lock(QSharedMemory* self);
|
|
bool QSharedMemory_Unlock(QSharedMemory* self);
|
|
uintptr_t QSharedMemory_Error(const QSharedMemory* self);
|
|
void QSharedMemory_ErrorString(const QSharedMemory* self, char** _out, int* _out_Strlen);
|
|
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);
|
|
void QSharedMemory_Delete(QSharedMemory* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|