]> git.saurik.com Git - apple/configd.git/blob - IPMonitorControl/AWD/AWDIPMonitorInterfaceAdvisoryReport.h
configd-963.200.27.tar.gz
[apple/configd.git] / IPMonitorControl / AWD / AWDIPMonitorInterfaceAdvisoryReport.h
1 // This file was automatically generated by protocompiler
2 // DO NOT EDIT!
3 // Compiled from stdin
4
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
7
8 #import "AWDIPMonitorGlobalEnums.h"
9
10 typedef NS_ENUM(int32_t, AWDIPMonitorInterfaceAdvisoryReport_Flags) {
11 AWDIPMonitorInterfaceAdvisoryReport_Flags_LINK_LAYER_ISSUE = 1,
12 AWDIPMonitorInterfaceAdvisoryReport_Flags_UPLINK_ISSUE = 2,
13 };
14 #ifdef __OBJC__
15 NS_INLINE NSString *AWDIPMonitorInterfaceAdvisoryReport_FlagsAsString(AWDIPMonitorInterfaceAdvisoryReport_Flags value)
16 {
17 switch (value)
18 {
19 case AWDIPMonitorInterfaceAdvisoryReport_Flags_LINK_LAYER_ISSUE: return @"LINK_LAYER_ISSUE";
20 case AWDIPMonitorInterfaceAdvisoryReport_Flags_UPLINK_ISSUE: return @"UPLINK_ISSUE";
21 default: return [NSString stringWithFormat:@"(unknown: %i)", value];
22 }
23 }
24 #endif /* __OBJC__ */
25 #ifdef __OBJC__
26 NS_INLINE AWDIPMonitorInterfaceAdvisoryReport_Flags StringAsAWDIPMonitorInterfaceAdvisoryReport_Flags(NSString *value)
27 {
28 if ([value isEqualToString:@"LINK_LAYER_ISSUE"]) return AWDIPMonitorInterfaceAdvisoryReport_Flags_LINK_LAYER_ISSUE;
29 if ([value isEqualToString:@"UPLINK_ISSUE"]) return AWDIPMonitorInterfaceAdvisoryReport_Flags_UPLINK_ISSUE;
30 return AWDIPMonitorInterfaceAdvisoryReport_Flags_LINK_LAYER_ISSUE;
31 }
32 #endif /* __OBJC__ */
33
34 #ifdef __cplusplus
35 #define AWDIPMONITORINTERFACEADVISORYREPORT_FUNCTION extern "C"
36 #else
37 #define AWDIPMONITORINTERFACEADVISORYREPORT_FUNCTION extern
38 #endif
39
40 @interface AWDIPMonitorInterfaceAdvisoryReport : PBCodable <NSCopying>
41 {
42 uint64_t _timestamp;
43 uint32_t _advisoryCount;
44 uint32_t _flags;
45 AWDIPMonitorInterfaceType _interfaceType;
46 struct {
47 int timestamp:1;
48 int advisoryCount:1;
49 int flags:1;
50 int interfaceType:1;
51 } _has;
52 }
53
54
55 @property (nonatomic) BOOL hasTimestamp;
56 @property (nonatomic) uint64_t timestamp;
57
58 @property (nonatomic) BOOL hasInterfaceType;
59 @property (nonatomic) AWDIPMonitorInterfaceType interfaceType;
60 - (NSString *)interfaceTypeAsString:(AWDIPMonitorInterfaceType)value;
61 - (AWDIPMonitorInterfaceType)StringAsInterfaceType:(NSString *)str;
62
63 @property (nonatomic) BOOL hasFlags;
64 @property (nonatomic) uint32_t flags;
65
66 @property (nonatomic) BOOL hasAdvisoryCount;
67 @property (nonatomic) uint32_t advisoryCount;
68
69 // Performs a shallow copy into other
70 - (void)copyTo:(AWDIPMonitorInterfaceAdvisoryReport *)other;
71
72 // Performs a deep merge from other into self
73 // If set in other, singular values in self are replaced in self
74 // Singular composite values are recursively merged
75 // Repeated values from other are appended to repeated values in self
76 - (void)mergeFrom:(AWDIPMonitorInterfaceAdvisoryReport *)other;
77
78 AWDIPMONITORINTERFACEADVISORYREPORT_FUNCTION BOOL AWDIPMonitorInterfaceAdvisoryReportReadFrom(AWDIPMonitorInterfaceAdvisoryReport *self, PBDataReader *reader);
79
80 @end
81