#include "config.h"
#include <string.h>
#include <gphoto2/gphoto2-library.h>
#include <gphoto2/gphoto2-result.h>
Include dependency graph for template.c:
camlib API functions | |
int | camera_id (CameraText *id) |
int | camera_abilities (CameraAbilitiesList *list) |
int | camera_init (Camera *camera, GPContext *context) |
Defines | |
#define | _(String) (String) |
#define | N_(String) (String) |
Copyright © 2005 Hans Ulrich Niedermann <gp@n-dimensional.de>
We implement the camlib API functions last in this file because camera_init() must reference all the object member functions and by making camera_init() the last function in this file, we can avoid the need for forward declarations of the object member functions.
Therefore it doesn't matter whether you declare your other functions static or not - regardless of whether they are object member functions or internal camlib functions.
We do not define the object member functions as static in this template in order to have autogenerated documentation about them.
int camera_abilities | ( | CameraAbilitiesList * | list | ) |
Fill list with abilities of the cameras supported by this camlib.
For each camera, fill a CameraAbilities structure with data about that camera and append it to the list.
The job of this function is basically to extract data from a camlib specific database and insert it into the libgphoto2 camera database. Due to redundant data and other issues, we may decide to revise that database mechanism and replace it by something more flexible and efficient.
This is a camlib API function.
int camera_id | ( | CameraText * | id | ) |
Set library ID string.
Probably redundant and to be removed shortly, being replaced by the libtool module name defined in the build system.
This is a camlib API function.
int camera_init | ( | Camera * | camera, | |
GPContext * | context | |||
) |
Initialize a Camera object.
Sets up all the proper object function pointers, initialize camlib internal data structures, and probably establish a connection to the camera.
This is a camlib API function.