forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-11-30 6c9be420e167ee7ce45c0309586f09ddab28ac15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "wifi_util_wrapper.h"
#include "WifiUtil.h"
 
#ifdef __cplusplus
extern "C" {
#endif
 
static WifiUtil *get_instance() {
    static WifiUtil *wifi_util = NULL;
    if (!wifi_util)
        wifi_util = new WifiUtil();
    return wifi_util;
}
 
char *get_wifi_list(void) {
    
    std::string list = get_instance()->getWifiListJson();
    return strdup(list.c_str());
}
 
char *get_device_context(void) {
    std::string list = get_instance()->getDeviceContextJson();
    return strdup(list.c_str());
}
#ifdef __cplusplus
};
#endif