diff options
Diffstat (limited to 'src/diagnostics_relay.c')
| -rw-r--r-- | src/diagnostics_relay.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/diagnostics_relay.c b/src/diagnostics_relay.c index 0e864c7..b6cf4d9 100644 --- a/src/diagnostics_relay.c +++ b/src/diagnostics_relay.c | |||
| @@ -370,18 +370,18 @@ LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_mobileges | |||
| 370 | return ret; | 370 | return ret; |
| 371 | } | 371 | } |
| 372 | 372 | ||
| 373 | LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* name, const char* class, plist_t* result) | 373 | LIBIMOBILEDEVICE_API diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* entry_name, const char* entry_class, plist_t* result) |
| 374 | { | 374 | { |
| 375 | if (!client || (name == NULL && class == NULL) || result == NULL) | 375 | if (!client || (entry_name == NULL && entry_class == NULL) || result == NULL) |
| 376 | return DIAGNOSTICS_RELAY_E_INVALID_ARG; | 376 | return DIAGNOSTICS_RELAY_E_INVALID_ARG; |
| 377 | 377 | ||
| 378 | diagnostics_relay_error_t ret = DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR; | 378 | diagnostics_relay_error_t ret = DIAGNOSTICS_RELAY_E_UNKNOWN_ERROR; |
| 379 | 379 | ||
| 380 | plist_t dict = plist_new_dict(); | 380 | plist_t dict = plist_new_dict(); |
| 381 | if (name) | 381 | if (entry_name) |
| 382 | plist_dict_set_item(dict,"EntryName", plist_new_string(name)); | 382 | plist_dict_set_item(dict,"EntryName", plist_new_string(entry_name)); |
| 383 | if (class) | 383 | if (entry_class) |
| 384 | plist_dict_set_item(dict,"EntryClass", plist_new_string(class)); | 384 | plist_dict_set_item(dict,"EntryClass", plist_new_string(entry_class)); |
| 385 | plist_dict_set_item(dict,"Request", plist_new_string("IORegistry")); | 385 | plist_dict_set_item(dict,"Request", plist_new_string("IORegistry")); |
| 386 | ret = diagnostics_relay_send(client, dict); | 386 | ret = diagnostics_relay_send(client, dict); |
| 387 | plist_free(dict); | 387 | plist_free(dict); |
