1 /* Generated by the protocol buffer compiler.  DO NOT EDIT! */
2 /* Generated from: wifi_constants.proto */
3 
4 #ifndef PROTOBUF_C_wifi_5fconstants_2eproto__INCLUDED
5 #define PROTOBUF_C_wifi_5fconstants_2eproto__INCLUDED
6 
7 #include <protobuf-c/protobuf-c.h>
8 
9 PROTOBUF_C__BEGIN_DECLS
10 
11 #if PROTOBUF_C_VERSION_NUMBER < 1003000
12 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
13 #elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
14 # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
15 #endif
16 
17 
18 typedef struct _WifiConnectedState WifiConnectedState;
19 
20 
21 /* --- enums --- */
22 
23 typedef enum _WifiStationState {
24   WIFI_STATION_STATE__Connected = 0,
25   WIFI_STATION_STATE__Connecting = 1,
26   WIFI_STATION_STATE__Disconnected = 2,
27   WIFI_STATION_STATE__ConnectionFailed = 3
28     PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(WIFI_STATION_STATE)
29 } WifiStationState;
30 typedef enum _WifiConnectFailedReason {
31   WIFI_CONNECT_FAILED_REASON__AuthError = 0,
32   WIFI_CONNECT_FAILED_REASON__NetworkNotFound = 1
33     PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(WIFI_CONNECT_FAILED_REASON)
34 } WifiConnectFailedReason;
35 typedef enum _WifiAuthMode {
36   WIFI_AUTH_MODE__Open = 0,
37   WIFI_AUTH_MODE__WEP = 1,
38   WIFI_AUTH_MODE__WPA_PSK = 2,
39   WIFI_AUTH_MODE__WPA2_PSK = 3,
40   WIFI_AUTH_MODE__WPA_WPA2_PSK = 4,
41   WIFI_AUTH_MODE__WPA2_ENTERPRISE = 5
42     PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(WIFI_AUTH_MODE)
43 } WifiAuthMode;
44 
45 /* --- messages --- */
46 
47 struct  _WifiConnectedState
48 {
49   ProtobufCMessage base;
50   char *ip4_addr;
51   WifiAuthMode auth_mode;
52   ProtobufCBinaryData ssid;
53   ProtobufCBinaryData bssid;
54   int32_t channel;
55 };
56 #define WIFI_CONNECTED_STATE__INIT \
57  { PROTOBUF_C_MESSAGE_INIT (&wifi_connected_state__descriptor) \
58     , (char *)protobuf_c_empty_string, WIFI_AUTH_MODE__Open, {0,NULL}, {0,NULL}, 0 }
59 
60 
61 /* WifiConnectedState methods */
62 void   wifi_connected_state__init
63                      (WifiConnectedState         *message);
64 size_t wifi_connected_state__get_packed_size
65                      (const WifiConnectedState   *message);
66 size_t wifi_connected_state__pack
67                      (const WifiConnectedState   *message,
68                       uint8_t             *out);
69 size_t wifi_connected_state__pack_to_buffer
70                      (const WifiConnectedState   *message,
71                       ProtobufCBuffer     *buffer);
72 WifiConnectedState *
73        wifi_connected_state__unpack
74                      (ProtobufCAllocator  *allocator,
75                       size_t               len,
76                       const uint8_t       *data);
77 void   wifi_connected_state__free_unpacked
78                      (WifiConnectedState *message,
79                       ProtobufCAllocator *allocator);
80 /* --- per-message closures --- */
81 
82 typedef void (*WifiConnectedState_Closure)
83                  (const WifiConnectedState *message,
84                   void *closure_data);
85 
86 /* --- services --- */
87 
88 
89 /* --- descriptors --- */
90 
91 extern const ProtobufCEnumDescriptor    wifi_station_state__descriptor;
92 extern const ProtobufCEnumDescriptor    wifi_connect_failed_reason__descriptor;
93 extern const ProtobufCEnumDescriptor    wifi_auth_mode__descriptor;
94 extern const ProtobufCMessageDescriptor wifi_connected_state__descriptor;
95 
96 PROTOBUF_C__END_DECLS
97 
98 
99 #endif  /* PROTOBUF_C_wifi_5fconstants_2eproto__INCLUDED */
100