From 07a493a570ddef69f5c424795345813fc9c32d6d Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 15 Sep 2018 03:44:58 +0200 Subject: Add usbmuxd_save_pair_record_with_device_id() to target a device by it's usbmux id --- include/usbmuxd.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/usbmuxd.h') diff --git a/include/usbmuxd.h b/include/usbmuxd.h index f345be2..0efebed 100644 --- a/include/usbmuxd.h +++ b/include/usbmuxd.h @@ -208,6 +208,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 * -- cgit v1.1-32-gdbae