]> git.saurik.com Git - apple/configd.git/blob - IPMonitorControl/AWD/AWDIPMonitorGlobalEnums.h
configd-963.200.27.tar.gz
[apple/configd.git] / IPMonitorControl / AWD / AWDIPMonitorGlobalEnums.h
1 // This file was automatically generated by protocompiler
2 // DO NOT EDIT!
3 // Compiled from stdin
4
5 #include <stdint.h>
6 #ifdef __OBJC__
7 #include <Foundation/Foundation.h>
8 #endif
9
10 #ifndef NS_ENUM
11 #if (__cplusplus && __cplusplus >= 201103L && (__has_extension(cxx_strong_enums) || __has_feature(objc_fixed_enum))) || (!__cplusplus && __has_feature(objc_fixed_enum))
12 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
13 #else
14 #define NS_ENUM(_type, _name) _type _name; enum
15 #endif
16 #endif // !defined(NS_ENUM)
17
18 typedef NS_ENUM(int32_t, AWDIPMonitorInterfaceType) {
19 AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_OTHER = 0,
20 AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIFI = 1,
21 AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_CELLULAR = 2,
22 AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIRED = 3,
23 };
24 #ifdef __OBJC__
25 NS_INLINE NSString *AWDIPMonitorInterfaceTypeAsString(AWDIPMonitorInterfaceType value)
26 {
27 switch (value)
28 {
29 case AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_OTHER: return @"IPMONITOR_INTERFACE_TYPE_OTHER";
30 case AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIFI: return @"IPMONITOR_INTERFACE_TYPE_WIFI";
31 case AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_CELLULAR: return @"IPMONITOR_INTERFACE_TYPE_CELLULAR";
32 case AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIRED: return @"IPMONITOR_INTERFACE_TYPE_WIRED";
33 default: return [NSString stringWithFormat:@"(unknown: %i)", value];
34 }
35 }
36 #endif /* __OBJC__ */
37 #ifdef __OBJC__
38 NS_INLINE AWDIPMonitorInterfaceType StringAsAWDIPMonitorInterfaceType(NSString *value)
39 {
40 if ([value isEqualToString:@"IPMONITOR_INTERFACE_TYPE_OTHER"]) return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_OTHER;
41 if ([value isEqualToString:@"IPMONITOR_INTERFACE_TYPE_WIFI"]) return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIFI;
42 if ([value isEqualToString:@"IPMONITOR_INTERFACE_TYPE_CELLULAR"]) return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_CELLULAR;
43 if ([value isEqualToString:@"IPMONITOR_INTERFACE_TYPE_WIRED"]) return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_WIRED;
44 return AWDIPMonitorInterfaceType_IPMONITOR_INTERFACE_TYPE_OTHER;
45 }
46 #endif /* __OBJC__ */