| Top |
ApertureDeviceManager finds and monitors camera devices that can be used in Aperture. It provides functions for listing cameras, and signals for detecting when cameras are plugged in or unplugged.
ApertureDeviceManager *
aperture_device_manager_get_instance (void);
Gets an ApertureDeviceManager.
Since: 0.1
int
aperture_device_manager_get_num_cameras
(ApertureDeviceManager *self);
Gets the number of available cameras.
Since: 0.1
ApertureCamera * aperture_device_manager_next_camera (ApertureDeviceManager *self,ApertureCamera *camera);
Gets the next camera index after camera
. If there are no cameras available,
returns NULL.
If camera
is NULL, the first camera will be returned.
Since: 0.1
ApertureCamera * aperture_device_manager_get_camera (ApertureDeviceManager *self,int idx);
Gets an ApertureCamera object for the given camera index.
#define APERTURE_TYPE_DEVICE_MANAGER (aperture_device_manager_get_type())
“camera-added” signalvoid user_function (ApertureDeviceManager *self, ApertureCamera *camera_index, gpointer user_data)
Emitted when a camera is discovered.
self |
||
camera_index |
the new camera |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 0.1
“camera-removed” signalvoid user_function (ApertureDeviceManager *self, ApertureCamera *camera_index, gpointer user_data)
Emitted when a camera is removed (typically because it has been unplugged).
self |
||
camera_index |
the (now removed) camera |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 0.1