2 * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __EVENT_INJECTOR_H__
18 #define __EVENT_INJECTOR_H__
22 static const int mac_addr_len;
23 static const char *local_mac_str;
24 static const char *peer_device_addr_str;
25 static const char *peer_iface_addr_str;
26 static const char *legacy_peer_iface_addr_str;
27 static const char *peer_go_addr_str;
28 static const char *peer_device_name;
29 static const int peer_config_methods;
30 static const int peer_dev_flag;
31 static const int peer_group_flag;
32 static const int peer_dev_role;
33 static const unsigned char peer_pri_dev_type;
34 static const unsigned char peer_sec_dev_type;
35 static const char *pin_str;
36 static const unsigned char ip_addr[4];
37 static const unsigned char ip_addr_mask[4];
38 static const unsigned char ip_addr_go[4];
39 static const int group_freq;
40 static const char *group_pass;
43 int txt_to_mac(const char *txt, unsigned char *mac);
53 void *PeerJoinedwithIP();
54 void *PeerDisconnected();
55 void *LegacyPeerJoined();
56 void *LegacyPeerDisconnected();
59 void *ProvReqDisplayPin(bool from_go);
60 void *ProvRespDisplayPin(bool from_go);
61 void *ProvReqEnterPin(bool from_go);
62 void *ProvRespEnterPin(bool from_go);
63 void *ProvPbcReq(bool from_go);
64 void *ProvPbcResp(bool from_go);
66 void *GroupStartedGO();
67 void *GroupStartedGOPersistent();
68 void *GroupStartedGC();
69 void *GroupStartedGCPersistent();
70 void *GroupStartedGCwithoutIP();
71 void *GoNegSuccessGo();
72 void *GoNegSuccessGc();
74 void *GoNegRequestPbc();
75 void *GoNegRequestDisplay();
76 void *GoNegRequestKeypad();
77 void *InvitationReceived();
78 void *GroupFinished();
81 void *GroupFormationFailed();
82 void *InvitationAccepted();
85 void *AspServiceFound();
86 void *AspProvStart(int wps_mode, int network_role);
87 void *AspProvDone(int status, int wps_mode, int network_role, int persist, int persist_id);
88 void *AspProvFail(int status);