kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/add_extern_c_for_sntp' into 'master'
lwip/sntp: Added extern "C" See merge request idf/esp-idf!5398pull/3738/head
commit
16014079f9
|
@ -15,6 +15,10 @@
|
||||||
#ifndef __SNTP_H__
|
#ifndef __SNTP_H__
|
||||||
#define __SNTP_H__
|
#define __SNTP_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The time update takes place in the sntp_sync_time() function.
|
* The time update takes place in the sntp_sync_time() function.
|
||||||
* The user has the ability to redefine this function in order
|
* The user has the ability to redefine this function in order
|
||||||
|
@ -116,4 +120,8 @@ void sntp_set_sync_status(sntp_sync_status_t sync_status);
|
||||||
*/
|
*/
|
||||||
void sntp_set_time_sync_notification_cb(sntp_sync_time_cb_t callback);
|
void sntp_set_time_sync_notification_cb(sntp_sync_time_cb_t callback);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __SNTP_H__
|
#endif // __SNTP_H__
|
||||||
|
|
Ładowanie…
Reference in New Issue