|
ESP SDK C API
|
00001 #ifndef __ESP_SDK_H 00002 #define __ESP_SDK_H 00003 00004 #include <sdk/esp_types.h> 00005 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif 00009 00028 ESPAPICALL EspList * esp_list_create( 00029 const ESP_LIST_ITEM_T type, 00030 EspError * error); 00031 00035 ESPAPICALL int32_t esp_list_get_count( 00036 const EspList * list, 00037 EspError * error); 00038 00042 ESPAPICALL int32_t esp_list_clear( 00043 EspList * list, 00044 EspError * error); 00045 00049 ESPAPICALL int32_t esp_list_free( 00050 EspList * list, 00051 EspError * error); 00052 00058 ESPAPICALL const EspStream * esp_list_get_stream( 00059 const EspList * list, 00060 const int32_t index, 00061 EspError * error); 00062 00068 ESPAPICALL const char * esp_list_get_string( 00069 const EspList * list, 00070 const int32_t index, 00071 EspError * error); 00072 00073 00080 ESPAPICALL const void * esp_list_get_event( 00081 const EspList * list, 00082 const int32_t index, 00083 EspError * error); 00084 00085 00091 ESPAPICALL EspMap * esp_map_create( 00092 EspError * error); 00093 00098 ESPAPICALL int32_t esp_map_set( 00099 EspMap * map, 00100 const char * key, 00101 const char * value, 00102 EspError * error); 00103 00108 ESPAPICALL const char * esp_map_get( 00109 const EspMap * map, 00110 const char * key, 00111 EspError * error); 00112 00118 ESPAPICALL int32_t esp_map_count( 00119 const EspMap * map, 00120 EspError * error); 00121 00124 ESPAPICALL int32_t esp_map_item_at( 00125 const EspMap * map, 00126 const int32_t index, 00127 const char ** key, 00128 const char ** value, 00129 EspError * error); 00130 00133 ESPAPICALL int32_t esp_map_free( 00134 EspMap * map, 00135 EspError * error); 00136 00147 ESPAPICALL int32_t esp_event_get_category( 00148 const void * event, 00149 EspError * error); 00150 00161 ESPAPICALL int32_t esp_sdk_start( 00162 EspError * error); 00163 00168 ESPAPICALL int32_t esp_sdk_stop( 00169 EspError * error); 00170 00174 ESPAPICALL int32_t esp_trace_on( 00175 EspError * error); 00176 00180 ESPAPICALL int32_t esp_trace_off( 00181 EspError * error); 00182 00195 #ifdef __cplusplus 00196 } 00197 #endif 00198 00199 #endif /* __ESP_SDK_H */
1.7.5