mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-09 06:30:10 +01:00
d46f9ab4dc
1. simplify CFString usage 2. support get string from CFDataRef
14 lines
424 B
C
14 lines
424 B
C
#pragma once
|
|
|
|
#ifndef FASTFETCH_INCLUDED_cfdict_helpers
|
|
#define FASTFETCH_INCLUDED_cfdict_helpers
|
|
|
|
#include "fastfetch.h"
|
|
#include <CoreFoundation/CoreFoundation.h>
|
|
|
|
bool ffCfDictGetString(CFMutableDictionaryRef dict, CFStringRef key, FFstrbuf* result);
|
|
bool ffCfDictGetBool(CFMutableDictionaryRef dict, CFStringRef key, bool* result);
|
|
bool ffCfDictGetInt(CFMutableDictionaryRef dict, CFStringRef key, int* result);
|
|
|
|
#endif
|