| Automatic probing of cablessrc/error.cc

### ticables_probing_do

int TICALL ticables_probing_do(int ***result, unsigned int timeout, ProbingMethod method)

Returns cables which have been detected. All cables should be closed before calling this function ! The array defines a matrix of PORT_MAX columns and CABLE_MAX + 1 rows; the rows corresponding to cables which cannot be probed are allocated but empty. The array must be freed by #ticables_probing_finish when no longer used.

result : | address of an array of integers to put the result.
timeout : | timeout to set during probing
method : | defines which link cables you want to search for.
Return value : | 0 if successful, ERR_NO_CABLE if no cables found.

### ticables_probing_finish

int TICALL ticables_probing_finish(int ***result)

Free the array created by #ticables_probing_do.

result : | address of an array of integers.
Return value : | always 0.

### ticables_is_usb_enabled

int TICALL ticables_is_usb_enabled(void)

Checks whether USB support is available. Can be called at any time.

Return value : | !0 if available, 0 otherwise.

### ticables_get_usb_devices

int TICALL ticables_get_usb_devices(int **list, int *len)

Returns the list of detected USB PIDs. Note that list is in the same order as PORT#x. The array must be freed when no longer used.

list : | out address of a NULL-terminated allocated array of integers (PIDs).
len : | out pointer to number of detected USB devices.
Return value : | 0 if successful, an error code otherwise.

### \brief Frees an array of USB devices

free(array);

\return Always 0

Return value : |

### ticables_get_usb_device_info

int TICALL ticables_get_usb_device_info(CableDeviceInfo **list, int *len)

Returns the list of detected USB devices. Note that list is in the same order as PORT#x. The array must be freed when no longer used.

array : | address of a newly allocated array of CableDeviceInfo structures
length : | number of detected USB devices.
Return value : | 0 if successful, an error code otherwise.

### \brief Frees an array of USB device information

free(list);

\return Always 0

Return value : |

### Return to the main index