gphoto2-library.h
Go to the documentation of this file.
#ifndef __GPHOTO2_LIBRARY_H__
#define __GPHOTO2_LIBRARY_H__
#include <gphoto2/gphoto2-abilities-list.h>
#include <gphoto2/gphoto2-camera.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef int (* CameraLibraryIdFunc) (CameraText *id);
typedef int (* CameraLibraryAbilitiesFunc) (CameraAbilitiesList *list);
typedef int (* CameraLibraryInitFunc) (Camera *camera, GPContext *context);
/*
* If you want to write a camera library, you need to implement
* the following three functions. Everything else should be declared
* as static.
*/
int camera_id (CameraText *id);
int camera_abilities (CameraAbilitiesList *list);
int camera_init (Camera *camera, GPContext *context);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GPHOTO2_LIBRARY_H__ */