Пример #1
0
 /// <summary>
 /// Gets device information for the device specified by udid.
 /// </summary>
 /// <param name="udid">
 /// A device UDID of the device to look for. If udid is NULL,
 /// This function will return the first device found.
 /// </param>
 /// <param name="device">
 /// Pointer to a previously allocated (or static)
 /// usbmuxd_device_info_t that will be filled with the device info.
 /// </param>
 /// <returns>
 /// 0 if no matching device is connected, 1 if the device was found,
 /// or a negative value on error.
 /// </returns>
 public virtual int usbmuxd_get_device_by_udid(string udid, ref UsbmuxdDeviceInfo device)
 {
     return(UsbmuxdNativeMethods.usbmuxd_get_device_by_udid(udid, ref device));
 }
Пример #2
0
 public static extern int usbmuxd_get_device_by_udid([System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string udid, ref UsbmuxdDeviceInfo device);
Пример #3
0
 /// <summary>
 /// Looks up the device specified by UDID with given options and returns
 /// device information.
 /// </summary>
 /// <param name="udid">
 /// A device UDID of the device to look for. If udid is NULL,
 /// this function will return the first device found.
 /// </param>
 /// <param name="device">
 /// Pointer to a previously allocated (or static)
 /// usbmuxd_device_info_t that will be filled with the device info.
 /// </param>
 /// <param name="options">
 /// Specifying what device connection types should be
 /// considered during lookup. Accepts bitwise or'ed values of
 /// usbmux_lookup_options.
 /// If 0 (no option) is specified it will default to DEVICE_LOOKUP_USBMUX.
 /// To lookup both USB and network-connected devices, pass
 /// DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK. If a device is available
 /// both via USBMUX *and* network, it will select the USB connection.
 /// This behavior can be changed by adding DEVICE_LOOKUP_PREFER_NETWORK
 /// to the options in which case it will select the network connection.
 /// </param>
 /// <returns>
 /// 0 if no matching device is connected, 1 if the device was found,
 /// or a negative value on error.
 /// </returns>
 public virtual int usbmuxd_get_device(string udid, ref UsbmuxdDeviceInfo device, int options)
 {
     return(UsbmuxdNativeMethods.usbmuxd_get_device(udid, ref device, options));
 }