diff options
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index f51ca3d..63bfecf 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -1322,6 +1322,14 @@ irecv_error_t irecv_setenv(irecv_client_t client, const char* variable, const ch return IRECV_E_SUCCESS; } +irecv_error_t irecv_reboot(irecv_client_t client) { + irecv_error_t error = irecv_send_command_raw(client, "reboot"); + if(error != IRECV_E_SUCCESS) { + return error; + } + return IRECV_E_SUCCESS; +} + const char* irecv_strerror(irecv_error_t error) { switch (error) { case IRECV_E_SUCCESS: |