xref: /wlan-dirver/utils/sigma-dut/miracast.h (revision 9c381f5922d50eb325775639b37ba9e38238102d)
1 /*
2  * Sigma Control API DUT - Miracast interface
3  * Copyright (c) 2017, Qualcomm Atheros, Inc.
4  * All Rights Reserved.
5  * Licensed under the Clear BSD license. See README for more details.
6 */
7 #ifndef SIGMA_MIRACAST_H
8 #define SIGMA_MIRACAST_H
9 
10 #include <stdlib.h>
11 #include <stdio.h>
12 #include <stdarg.h>
13 #include <string.h>
14 #include <errno.h>
15 #include <unistd.h>
16 #include <time.h>
17 #include <sys/time.h>
18 #include <sys/types.h>
19 #include <sys/socket.h>
20 #include <net/if.h>
21 #include <netinet/in.h>
22 #include <arpa/inet.h>
23 #ifdef ANDROID
24 #include "properties.h"
25 #endif /* ANDROID */
26 
27 
28 struct sigma_dut;
29 struct sigma_conn;
30 struct sigma_cmd;
31 
32 void miracast_init(struct sigma_dut *sigma_dut);
33 
34 void miracast_deinit(struct sigma_dut *sigma_dut);
35 
36 void miracast_start_autonomous_go(struct sigma_dut *dut,
37 				  struct sigma_conn *conn,
38 				  struct sigma_cmd *cmd, char *ifname);
39 
40 int miracast_dev_send_frame(struct sigma_dut *dut, struct sigma_conn *conn,
41 			    struct sigma_cmd *cmd);
42 
43 int miracast_dev_exec_action(struct sigma_dut *dut, struct sigma_conn *conn,
44 			     struct sigma_cmd *cmd);
45 
46 int miracast_preset_testparameters(struct sigma_dut *dut,
47 				   struct sigma_conn *conn,
48 				   struct sigma_cmd *cmd);
49 
50 int miracast_cmd_sta_get_parameter(struct sigma_dut *dut,
51 				   struct sigma_conn *conn,
52 				   struct sigma_cmd *cmd);
53 
54 void miracast_sta_reset_default(struct sigma_dut *dut, struct sigma_conn *conn,
55 				struct sigma_cmd *cmd);
56 
57 #endif /* SIGMA_MIRACAST_H */
58