Webcam Library Reference Documentation  Logitech logo
_Handle Struct Reference

Information associated with a device handle. More...

#include <libwebcam/libwebcam.h>

Data Fields

Devicedevice
 Pointer to the device structure associated with this handle.
 
int open
 True if the handle is open (valid or invalid)
 
int last_system_error
 The number of the last system error (e.g. a V4L2 return value)
 

Detailed Description

Information associated with a device handle.

Note that a handle can have three different states:

  • Closed/free: The device handle is not being used by an application.
  • Valid: The device handle is open by an application and points to a valid device.
  • Invalid: The device handle is open by an application but does not point to a (valid) device anymore. This happens when a device is removed from the system but there are still open handles around. An "open" handle can be both valid or invalid.

The documentation for this struct was generated from the following file:

Generated on Sun Apr 28 2013 23:41:33 for Webcam Library by Doxygen 1.8.3.1
Copyright © 2006-2008 Logitech.