miqt/qt6/gen_qcryptographichash.h

43 lines
1.3 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_GEN_QCRYPTOGRAPHICHASH_H
#define MIQT_QT6_GEN_QCRYPTOGRAPHICHASH_H
2024-10-20 18:21:03 +13:00
#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 QByteArrayView;
class QCryptographicHash;
class QIODevice;
#else
typedef struct QByteArrayView QByteArrayView;
typedef struct QCryptographicHash QCryptographicHash;
typedef struct QIODevice QIODevice;
#endif
2024-12-07 17:15:57 +13:00
QCryptographicHash* QCryptographicHash_new(int method);
2025-02-01 13:45:16 +13:00
void QCryptographicHash_reset(QCryptographicHash* self);
void QCryptographicHash_addData(QCryptographicHash* self, const char* data, ptrdiff_t length);
void QCryptographicHash_addDataWithData(QCryptographicHash* self, QByteArrayView* data);
bool QCryptographicHash_addDataWithDevice(QCryptographicHash* self, QIODevice* device);
struct miqt_string QCryptographicHash_result(const QCryptographicHash* self);
QByteArrayView* QCryptographicHash_resultView(const QCryptographicHash* self);
struct miqt_string QCryptographicHash_hash(QByteArrayView* data, int method);
int QCryptographicHash_hashLength(int method);
void QCryptographicHash_delete(QCryptographicHash* self);
2024-10-20 18:21:03 +13:00
#ifdef __cplusplus
} /* extern C */
2025-02-01 13:45:16 +13:00
#endif
2024-10-20 18:21:03 +13:00
#endif