mirror of
https://github.com/NohamR/xovi-rmfakecloud.git
synced 2026-05-26 04:27:08 +00:00
Websocket support
This commit is contained in:
92
websocket-xovi.c
Normal file
92
websocket-xovi.c
Normal file
@@ -0,0 +1,92 @@
|
||||
// This file is autogenerated. Please do not alter it manually and instead run xovigen.py.
|
||||
// XOVI extension / module base file
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifndef XOVI_PUBLIC_API
|
||||
#define XOVI_PUBLIC_API
|
||||
#define XOVI_VERSION "0.2.0"
|
||||
#include <stdbool.h>
|
||||
|
||||
#define LP1_F_TYPE_EXPORT 1
|
||||
#define LP1_F_TYPE_IMPORT 2
|
||||
#define LP1_F_TYPE_OVERRIDE 3
|
||||
#define LP1_F_TYPE_CONDITION 4
|
||||
|
||||
#define METADATA_TYPE_INT 1
|
||||
#define METADATA_TYPE_BOOL 2
|
||||
#define METADATA_TYPE_STRING 3
|
||||
|
||||
typedef union {
|
||||
int i;
|
||||
bool b;
|
||||
struct {
|
||||
int sLength;
|
||||
const char *s;
|
||||
};
|
||||
} XoviMetadataValue;
|
||||
|
||||
struct XoviMetadataEntry {
|
||||
const char *name;
|
||||
char type;
|
||||
XoviMetadataValue value;
|
||||
};
|
||||
|
||||
// Public version of the metadata iterator.
|
||||
struct ExtensionMetadataIterator {
|
||||
const char *extensionName;
|
||||
const char *functionName;
|
||||
void *functionAddress;
|
||||
char OPAQUE[sizeof(void *) * 4 + sizeof(bool)];
|
||||
};
|
||||
|
||||
struct XoViEnvironment {
|
||||
char *(*getExtensionDirectory)(const char *family);
|
||||
void (*requireExtension)(const char *name, unsigned char major, unsigned char minor, unsigned char patch);
|
||||
|
||||
// 0.2.0 API - metadata:
|
||||
int (*getExtensionCount)();
|
||||
int (*getExtensionNames)(const char **table, int maxCount);
|
||||
int (*getExtensionFunctionCount)(const char *key);
|
||||
int (*getExtensionFunctionNames)(const char *extension, const char **table, int maxCount);
|
||||
|
||||
int (*getMetadataEntriesCountForFunction)(const char *extension, const char *function, int functionType);
|
||||
struct XoviMetadataEntry **(*getMetadataChainForFunction)(const char *extension, const char *function, int functionType);
|
||||
struct XoviMetadataEntry *(*getMetadataEntryForFunction)(const char *extension, const char *function, int functionType, const char *metadataEntryName);
|
||||
|
||||
void (*createMetadataSearchingIterator)(struct ExtensionMetadataIterator *iterator, const char *metadataEntryName);
|
||||
struct XoviMetadataEntry *(*nextFunctionMetadataEntry)(struct ExtensionMetadataIterator *iterator);
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
// Deps
|
||||
extern void override$_ZN10QWebSocket4openERK15QNetworkRequest();
|
||||
|
||||
// XOVI metadata
|
||||
__attribute__((section(".xovi"))) const char *LINKTABLENAMES = "C_ZN10QWebSocket4openERK15QNetworkRequest\0I_ZN10QWebSocket4openERK15QNetworkRequest\0O_ZN10QWebSocket4openERK15QNetworkRequest\0\0";
|
||||
__attribute__((section(".xovi"))) const void *LINKTABLEVALUES[] = { (void *) 3, (void *) 0, (void *) 0, (void *) override$_ZN10QWebSocket4openERK15QNetworkRequest };
|
||||
__attribute__((section(".xovi"))) const void *Environment = 0;
|
||||
__attribute__((section(".xovi_info"))) const int EXTENSIONVERSION = 65536;
|
||||
|
||||
__attribute__((section(".xovi_info"))) const char __XOVIMETADATANAMES[] = "";
|
||||
|
||||
// Raw Metadata Entries
|
||||
|
||||
|
||||
// Metadata Chains
|
||||
|
||||
|
||||
// Main metadata list
|
||||
__attribute__((section(".xovi"))) const struct XoviMetadataEntry **METADATAVALUES[] = {
|
||||
(const struct XoviMetadataEntry **) 0,
|
||||
(const struct XoviMetadataEntry **) 0,
|
||||
(const struct XoviMetadataEntry **) 0,
|
||||
(const struct XoviMetadataEntry **) 0, (const struct XoviMetadataEntry **) 1
|
||||
};
|
||||
|
||||
// Resources
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user