2024-11-04 22:53:04 +13:00
|
|
|
#include <QHttp2Configuration>
|
|
|
|
#include <qhttp2configuration.h>
|
|
|
|
#include "gen_qhttp2configuration.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-11-04 22:53:04 +13:00
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QHttp2Configuration* QHttp2Configuration_new() {
|
|
|
|
return new QHttp2Configuration();
|
2024-11-04 22:53:04 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QHttp2Configuration* QHttp2Configuration_new2(QHttp2Configuration* other) {
|
|
|
|
return new QHttp2Configuration(*other);
|
2024-11-04 22:53:04 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
void QHttp2Configuration_OperatorAssign(QHttp2Configuration* self, QHttp2Configuration* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHttp2Configuration_SetServerPushEnabled(QHttp2Configuration* self, bool enable) {
|
|
|
|
self->setServerPushEnabled(enable);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QHttp2Configuration_ServerPushEnabled(const QHttp2Configuration* self) {
|
|
|
|
return self->serverPushEnabled();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHttp2Configuration_SetHuffmanCompressionEnabled(QHttp2Configuration* self, bool enable) {
|
|
|
|
self->setHuffmanCompressionEnabled(enable);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QHttp2Configuration_HuffmanCompressionEnabled(const QHttp2Configuration* self) {
|
|
|
|
return self->huffmanCompressionEnabled();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QHttp2Configuration_SetSessionReceiveWindowSize(QHttp2Configuration* self, unsigned int size) {
|
|
|
|
return self->setSessionReceiveWindowSize(static_cast<unsigned int>(size));
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QHttp2Configuration_SessionReceiveWindowSize(const QHttp2Configuration* self) {
|
|
|
|
return self->sessionReceiveWindowSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QHttp2Configuration_SetStreamReceiveWindowSize(QHttp2Configuration* self, unsigned int size) {
|
|
|
|
return self->setStreamReceiveWindowSize(static_cast<unsigned int>(size));
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QHttp2Configuration_StreamReceiveWindowSize(const QHttp2Configuration* self) {
|
|
|
|
return self->streamReceiveWindowSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QHttp2Configuration_SetMaxFrameSize(QHttp2Configuration* self, unsigned int size) {
|
|
|
|
return self->setMaxFrameSize(static_cast<unsigned int>(size));
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QHttp2Configuration_MaxFrameSize(const QHttp2Configuration* self) {
|
|
|
|
return self->maxFrameSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHttp2Configuration_Swap(QHttp2Configuration* self, QHttp2Configuration* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
void QHttp2Configuration_Delete(QHttp2Configuration* self) {
|
|
|
|
delete self;
|
2024-11-04 22:53:04 +13:00
|
|
|
}
|
|
|
|
|