wifi-headerfile-updates

1, add "extern "C" {}  " to "wifi_ind.h" for being called by CPP files.
pull/8750/head
zhangzhenwu 2018-11-15 17:02:03 +08:00
parent 1ac4d9b430
commit c97d343470
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,10 @@
#include "wifi_conf.h" #include "wifi_conf.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*rtw_event_handler_t)(char *buf, int buf_len, int flags, void* handler_user_data ); typedef void (*rtw_event_handler_t)(char *buf, int buf_len, int flags, void* handler_user_data );
typedef struct typedef struct
@ -90,6 +94,10 @@ extern void wifi_reg_event_handler(unsigned int event_cmds, rtw_event_handler_t
*/ */
extern void wifi_unreg_event_handler(unsigned int event_cmds, rtw_event_handler_t handler_func); extern void wifi_unreg_event_handler(unsigned int event_cmds, rtw_event_handler_t handler_func);
#ifdef __cplusplus
}
#endif
/*\@}*/ /*\@}*/
#endif //_WIFI_INDICATE_H #endif //_WIFI_INDICATE_H