diff options
author | Nikias Bassen | 2018-09-15 03:44:58 +0200 |
---|---|---|
committer | Nikias Bassen | 2018-09-15 03:44:58 +0200 |
commit | 07a493a570ddef69f5c424795345813fc9c32d6d (patch) | |
tree | 4196d0befcc5ed79755f68732b671970c7864b4b /include | |
parent | 3d43c4f0c1c0d443b307d4d51d179036cf0e1b58 (diff) | |
download | libusbmuxd-07a493a570ddef69f5c424795345813fc9c32d6d.tar.gz libusbmuxd-07a493a570ddef69f5c424795345813fc9c32d6d.tar.bz2 |
Add usbmuxd_save_pair_record_with_device_id() to target a device by it's usbmux id
Diffstat (limited to 'include')
-rw-r--r-- | include/usbmuxd.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/usbmuxd.h b/include/usbmuxd.h index f345be2..0efebed 100644 --- a/include/usbmuxd.h +++ b/include/usbmuxd.h @@ -209,6 +209,18 @@ int usbmuxd_read_pair_record(const char* record_id, char **record_data, uint32_t int usbmuxd_save_pair_record(const char* record_id, const char *record_data, uint32_t record_size); /** + * Save a pairing record with device identifier + * + * @param record_id the record identifier of the pairing record to save + * @param device_id the device identifier of the connected device, or 0 + * @param record_data buffer containing the pairing record data + * @param record_size size of the buffer passed in record_data + * + * @return 0 on success, a negative error value otherwise. + */ +int usbmuxd_save_pair_record_with_device_id(const char* record_id, uint32_t device_id, const char *record_data, uint32_t record_size); + +/** * Delete a pairing record * * @param record_id the record identifier of the pairing record to delete. |