Virtual Method

AravisInterfaceopen_device

Declaration [src]

ArvDevice*
open_device (
  ArvInterface* iface,
  const char* device_id,
  GError** error
)

Description [src]

Creates a new ArvDevice object corresponding to the given device id string. The first available device is returned if device_id is NULL.

Available since:0.2.0

Parameters

device_id const char*
 

Device unique id.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: ArvDevice
 

A new ArvDevice.

 The caller of the function takes ownership of the data, and is responsible for freeing it.