libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ lockdownd_set_value()

lockdownd_error_t lockdownd_set_value ( lockdownd_client_t  client,
const char *  domain,
const char *  key,
plist_t  value 
)

Sets a preferences value using a plist and optional by domain and/or key name.

Parameters
clientan initialized lockdownd client.
domainthe domain to query on or NULL for global domain
keythe key name to set the value or NULL to set a value dict plist
valuea plist node of any node type representing the value to set
Returns
LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or value is NULL