CMake: Add option ENABLE_SYSTEM_YYJSON

Fix: #525
This commit is contained in:
李通洲
2023-08-19 11:10:14 +08:00
parent 125759dc75
commit c7f0172b25
3 changed files with 26 additions and 4 deletions
+3 -2
View File
@@ -1,14 +1,15 @@
#pragma once
#include "util/FFstrbuf.h"
#include "3rdparty/yyjson/yyjson.h"
struct yyjson_val;
// Must be the first field of FFModuleOptions
typedef struct FFModuleBaseInfo
{
const char* name;
bool (*parseCommandOptions)(void* options, const char* key, const char* value);
void (*parseJsonObject)(void* options, yyjson_val *module);
void (*parseJsonObject)(void* options, struct yyjson_val *module);
void (*printModule)(void* options);
} FFModuleBaseInfo;