mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
42 lines
1.5 KiB
C++
42 lines
1.5 KiB
C++
#pragma once
|
|
#ifndef MIQT_QT_GEN_QSYSTEMSEMAPHORE_H
|
|
#define MIQT_QT_GEN_QSYSTEMSEMAPHORE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QSystemSemaphore;
|
|
#else
|
|
typedef struct QSystemSemaphore QSystemSemaphore;
|
|
#endif
|
|
|
|
void QSystemSemaphore_new(struct miqt_string key, QSystemSemaphore** outptr_QSystemSemaphore);
|
|
void QSystemSemaphore_new2(struct miqt_string key, int initialValue, QSystemSemaphore** outptr_QSystemSemaphore);
|
|
void QSystemSemaphore_new3(struct miqt_string key, int initialValue, int mode, QSystemSemaphore** outptr_QSystemSemaphore);
|
|
void QSystemSemaphore_SetKey(QSystemSemaphore* self, struct miqt_string key);
|
|
struct miqt_string QSystemSemaphore_Key(const QSystemSemaphore* self);
|
|
bool QSystemSemaphore_Acquire(QSystemSemaphore* self);
|
|
bool QSystemSemaphore_Release(QSystemSemaphore* self);
|
|
int QSystemSemaphore_Error(const QSystemSemaphore* self);
|
|
struct miqt_string QSystemSemaphore_ErrorString(const QSystemSemaphore* self);
|
|
void QSystemSemaphore_SetKey2(QSystemSemaphore* self, struct miqt_string key, int initialValue);
|
|
void QSystemSemaphore_SetKey3(QSystemSemaphore* self, struct miqt_string key, int initialValue, int mode);
|
|
bool QSystemSemaphore_Release1(QSystemSemaphore* self, int n);
|
|
void QSystemSemaphore_Delete(QSystemSemaphore* self, bool isSubclass);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|