diff options
author | Frederik Carlier | 2016-04-06 00:17:00 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-12-16 15:18:33 +0100 |
commit | 315cea700da438395c4d2b66e0af2b0b38a2b3d0 (patch) | |
tree | 77971a3c0391f9a98e7614b1937766c5205a731f /src | |
parent | 9f79242a441ce37c28db2b84d49621d26418dc53 (diff) | |
download | libimobiledevice-315cea700da438395c4d2b66e0af2b0b38a2b3d0.tar.gz libimobiledevice-315cea700da438395c4d2b66e0af2b0b38a2b3d0.tar.bz2 |
Define the flags for the diagnostics_relay_* methods in a diagnostics_relay_action_t enum
Diffstat (limited to 'src')
-rw-r--r-- | src/diagnostics_relay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diagnostics_relay.c b/src/diagnostics_relay.c index 0834700..3ac6058 100644 --- a/src/diagnostics_relay.c +++ b/src/diagnostics_relay.c @@ -229,7 +229,7 @@ LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_sleep(diagnosti return ret; } -static diagnostics_relay_error_t internal_diagnostics_relay_action(diagnostics_relay_client_t client, const char* name, int flags) +static diagnostics_relay_error_t internal_diagnostics_relay_action(diagnostics_relay_client_t client, const char* name, diagnostics_relay_action_t flags) { if (!client) return DIAGNOSTICS_RELAY_E_INVALID_ARG; @@ -273,12 +273,12 @@ static diagnostics_relay_error_t internal_diagnostics_relay_action(diagnostics_r return ret; } -LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, int flags) +LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, diagnostics_relay_action_t flags) { return internal_diagnostics_relay_action(client, "Restart", flags); } -LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t client, int flags) +LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t client, diagnostics_relay_action_t flags) { return internal_diagnostics_relay_action(client, "Shutdown", flags); } |