|
| | OPENVPN_CF_WRAP (Error, error_cast, CFErrorRef, CFErrorGetTypeID) |
| |
| Generic | generic_cast (CFTypeRef obj) |
| |
| String | string (const char *str) |
| |
| String | string (CFStringRef str) |
| |
| String | string (const String &str) |
| |
| String | string (const std::string &str) |
| |
| String | string (const std::string *str) |
| |
| Number | number_from_int (const int n) |
| |
| Number | number_from_int32 (const SInt32 n) |
| |
| Number | number_from_long_long (const long long n) |
| |
| Number | number_from_index (const CFIndex n) |
| |
| Data | data (const void *bytes, CFIndex length) |
| |
| Array | array (const void **values, CFIndex numValues) |
| |
| Dict | dict (const void **keys, const void **values, CFIndex numValues) |
| |
| Dict | const_dict (MutableDict &mdict) |
| |
| Array | const_array (MutableArray &marray) |
| |
| Dict | empty_dict () |
| |
| MutableArray | mutable_array (const CFIndex capacity=0) |
| |
| MutableDict | mutable_dict (const CFIndex capacity=0) |
| |
| template<typename DICT > |
| MutableDict | mutable_dict_copy (const DICT &dict, const CFIndex capacity=0) |
| |
| Error | error (CFStringRef domain, CFIndex code, CFDictionaryRef userInfo) |
| |
| template<typename ARRAY > |
| CFIndex | array_len (const ARRAY &array) |
| |
| template<typename DICT > |
| CFIndex | dict_len (const DICT &dict) |
| |
| template<typename ARRAY > |
| CFTypeRef | array_index (const ARRAY &array, const CFIndex idx) |
| |
| template<typename DICT , typename KEY > |
| CFTypeRef | dict_index (const DICT &dict, const KEY &key) |
| |
| std::string | cppstring (CFStringRef str) |
| |
| std::string | cppstring (const String &str) |
| |
| std::string | description (CFTypeRef obj) |
| |
| template<typename ARRAY > |
| std::string | array_to_string (const ARRAY &array, const char delim=',') |
| |
| bool | string_equal (const String &s1, const String &s2, const CFStringCompareFlags compareOptions=0) |
| |
| Data | plist (CFTypeRef obj) |
| |
| Array | array (const SrcList &values) |
| |
| Dict | dict (const SrcList &keys, const SrcList &values) |
| |
| CFTypeRef | mutable_dict_new () |
| |
| CFTypeRef | mutable_array_new () |
| |
| template<typename KEY > |
| CFTypeRef | dict_get_create (CFMutableDictionaryRef base, const KEY &key, CFTypeRef(*create_method)()) |
| |
| template<typename KEY > |
| MutableDict | dict_get_create_dict (MutableDict &base, const KEY &key) |
| |
| template<typename KEY > |
| MutableArray | dict_get_create_array (MutableDict &base, const KEY &key) |
| |
| template<typename DICT , typename KEY > |
| CFTypeRef | dict_get_obj (const DICT &dict, const KEY &key) |
| |
| template<typename DICT , typename KEY > |
| std::string | dict_get_str (const DICT &dict, const KEY &key) |
| |
| template<typename DICT , typename KEY > |
| std::string | dict_get_str (const DICT &dict, const KEY &key, const std::string &default_value) |
| |
| template<typename DICT , typename KEY > |
| int | dict_get_int (const DICT &dict, const KEY &key, const int default_value) |
| |
| template<typename DICT , typename KEY > |
| bool | dict_get_bool (const DICT &dict, const KEY &key, const bool default_value) |
| |
| void | dictionarySetValue (CFMutableDictionaryRef theDict, const void *key, const void *value) |
| |
| void | arrayAppendValue (CFMutableArrayRef theArray, const void *value) |
| |
| template<typename KEY > |
| void | dict_set_obj (MutableDict &dict, const KEY &key, CFTypeRef value) |
| |
| template<typename KEY , typename VALUE > |
| void | dict_set_str (MutableDict &dict, const KEY &key, const VALUE &value) |
| |
| template<typename KEY > |
| void | dict_set_int (MutableDict &dict, const KEY &key, int value) |
| |
| template<typename KEY > |
| void | dict_set_int32 (MutableDict &dict, const KEY &key, SInt32 value) |
| |
| template<typename KEY > |
| void | dict_set_long_long (MutableDict &dict, const KEY &key, long long value) |
| |
| template<typename KEY > |
| void | dict_set_index (MutableDict &dict, const KEY &key, CFIndex value) |
| |
| template<typename KEY > |
| void | dict_set_bool (MutableDict &dict, const KEY &key, bool value) |
| |
| template<typename VALUE > |
| void | array_append_str (MutableArray &array, const VALUE &value) |
| |
| void | array_append_int (MutableArray &array, int value) |
| |
| void | array_append_int32 (MutableArray &array, SInt32 value) |
| |
| void | array_append_long_long (MutableArray &array, long long value) |
| |
| void | array_append_index (MutableArray &array, CFIndex value) |
| |
| | OPENVPN_CF_WRAP (RunLoopSource, runloop_source_cast, CFRunLoopSourceRef, CFRunLoopSourceGetTypeID) |
| |
| | OPENVPN_CF_WRAP (NetworkReachability, network_reachability_cast, SCNetworkReachabilityRef, SCNetworkReachabilityGetTypeID) |
| |
| template<typename RET , typename KEY > |
| RET | DynamicStoreCopy (const DynamicStore &ds, const KEY &key) |
| |
| template<typename KEY > |
| Dict | DynamicStoreCopyDict (const DynamicStore &ds, const KEY &key) |
| |