mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-10 07:00:08 +01:00
Util (Linux): add elf helper
This commit is contained in:
1 parent
2e2cf64452
commit
a9373fb4e4
8 files changed
+115
No files matched your search
@@ -66,6 +66,8 @@ const char* ffOptionsParseLibraryJsonConfig(FFOptionsLibrary* options, yyjson_va
|
||||
ffStrbufSetS(&options->libDdcutil, yyjson_get_str(val));
|
||||
else if (ffStrEqualsIgnCase(key, "drm"))
|
||||
ffStrbufSetS(&options->libdrm, yyjson_get_str(val));
|
||||
else if (ffStrEqualsIgnCase(key, "elf"))
|
||||
ffStrbufSetS(&options->libelf, yyjson_get_str(val));
|
||||
#endif
|
||||
|
||||
else
|
||||
@@ -131,6 +133,8 @@ bool ffOptionsParseLibraryCommandLine(FFOptionsLibrary* options, const char* key
|
||||
ffOptionParseString(key, value, &options->libDdcutil);
|
||||
else if(ffStrEqualsIgnCase(subkey, "drm"))
|
||||
ffOptionParseString(key, value, &options->libdrm);
|
||||
else if(ffStrEqualsIgnCase(subkey, "elf"))
|
||||
ffOptionParseString(key, value, &options->libelf);
|
||||
#endif
|
||||
|
||||
else
|
||||
|
||||
@@ -32,6 +32,7 @@ typedef struct FFOptionsLibrary
|
||||
FFstrbuf libPulse;
|
||||
FFstrbuf libDdcutil;
|
||||
FFstrbuf libdrm;
|
||||
FFstrbuf libelf;
|
||||
#endif
|
||||
} FFOptionsLibrary;
|
||||
|
||||
|
||||
Reference in new issue
Block a user