mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
19 lines
269 B
C
19 lines
269 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#ifdef FF_HAVE_JSONC
|
||
|
|
|
||
|
|
#include "fastfetch.h"
|
||
|
|
|
||
|
|
#include <json-c/json.h>
|
||
|
|
|
||
|
|
bool ffJsonLoadLibrary(const FFinstance* instance);
|
||
|
|
|
||
|
|
static inline void wrapJsoncFree(json_object** root)
|
||
|
|
{
|
||
|
|
assert(root);
|
||
|
|
if (*root)
|
||
|
|
json_object_put(*root);
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif
|