File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ enum loglevel_e {
68
68
*/
69
69
typedef void (* urc_callback_f )(unsigned int urc_code , unsigned int urc_param );
70
70
71
+ /**
72
+ * Reboot callback function called when reboot command is given
73
+ *
74
+ * @return True if reboot is allowed, false otherwise
75
+ */
76
+ typedef int (* reboot_callback_f )(void );
77
+
71
78
/**
72
79
* Initialize Logicrom OpenCPU SDK library
73
80
* @param stdio [in] STDIO port (e.g. /dev/ttyUSB0), can be NULL if STDIO is not required
@@ -100,6 +107,12 @@ void system_settz(const char *tz);
100
107
*/
101
108
void system_gettz (char * tz , int size );
102
109
110
+ /**
111
+ * Set reboot confirm callback
112
+ * @param callback [in] Callback function pointer
113
+ */
114
+ int system_set_reboot_callback (reboot_callback_f callback );
115
+
103
116
/**
104
117
* Debug printf with debug level.
105
118
*
You can’t perform that action at this time.
0 commit comments