68 # define _(String) dgettext (GETTEXT_PACKAGE, String)
74 # define N_(String) gettext_noop (String)
76 # define N_(String) (String)
79 # define _(String) (String)
80 # define N_(String) (String)
220 strcpy (about->
text,
_(
"Library Name\n"
221 "YOUR NAME <email@somewhere.com>\n"
222 "Quick description of the library.\n"
223 "No more than 5 lines if possible."));
294 const char *filename,
void *data,
GPContext *context);
297 const char *filename,
void *data,
GPContext *context)
417 int *nrofstorageinformations,
void *data,
422 int *nrofstorageinformations,
void *data,
455 strcpy(id->
text,
"REPLACE WITH UNIQUE LIBRARY ID");
480 memset(&a, 0,
sizeof(a));
481 strcpy(a.
model,
"CAMERA VENDOR:CAMERA MODEL");
int gp_abilities_list_append(CameraAbilitiesList *list, CameraAbilities abilities)
Append the abilities to the list.
@ GP_FILE_OPERATION_PREVIEW
@ GP_FILE_OPERATION_DELETE
@ GP_FOLDER_OPERATION_NONE
@ GP_OPERATION_CAPTURE_PREVIEW
@ GP_DRIVER_STATUS_PRODUCTION
CameraCaptureType
Type of the capture to do.
@ GP_CAPTURE_IMAGE
Capture an image.
CameraFileType
The type of view on the specified file.
int gp_filesystem_set_funcs(CameraFilesystem *fs, CameraFilesystemFuncs *funcs, void *data)
Set all filesystem related function pointers.
@ GP_PORT_SERIAL
Serial port.
#define GP_OK
Everything is OK.
#define GP_ERROR_NOT_SUPPORTED
Functionality not supported.
Describes the properties of a specific camera.
char model[128]
name of camera model
GPPortType port
Supported port types.
int speed[64]
Supported serial port speeds (terminated with a value of 0).
CameraDriverStatus status
driver quality
CameraFolderOperation folder_operations
Camera folder op funcs.
CameraOperation operations
Camera operation funcs.
CameraFileOperation file_operations
Camera file op funcs.
A structure created by the capture operation.
CameraText structure used in various functions.
char text[32 *1024]
Character string containing the translated text.
File information structure.
CameraFilesystemListFunc file_list_func
The internal camera filesystem structure.
CameraCapturePreviewFunc capture_preview
Preview viewfinder content.
CameraManualFunc manual
Give a brief manual about any specific items a user has to know, translated.
CameraGetConfigFunc get_config
Called for requesting the configuration widgets.
CameraAboutFunc about
A little About text, including authors and credits.
CameraSetConfigFunc set_config
Called after a configuration was changed.
CameraSummaryFunc summary
Give a summary about the current camera status, translated.
CameraExitFunc exit
Function called on closing the camera.
CameraCaptureFunc capture
Remote control the camera to capture.
CameraFunctions * functions
int folder_list_func(CameraFilesystem *fs, const char *folder, CameraList *list, void *data, GPContext *context)
int camera_summary(Camera *camera, CameraText *summary, GPContext *context)
int camera_abilities(CameraAbilitiesList *list)
Get a list of abilities of all supported cameras.
int camera_capture(Camera *camera, CameraCaptureType type, CameraFilePath *path, GPContext *context)
int camera_config_get(Camera *camera, CameraWidget **window, GPContext *context)
int storage_info_func(CameraFilesystem *fs, CameraStorageInformation **storageinformations, int *nrofstorageinformations, void *data, GPContext *context)
int camera_config_set(Camera *camera, CameraWidget *window, GPContext *context)
int camera_capture_preview(Camera *camera, CameraFile *file, GPContext *context)
int camera_id(CameraText *id)
Get a unique camera id.
int get_info_func(CameraFilesystem *fs, const char *folder, const char *filename, CameraFileInfo *info, void *data, GPContext *context)
int put_file_func(CameraFilesystem *fs, const char *folder, const char *name, CameraFileType type, CameraFile *file, void *data, GPContext *context)
CameraFilesystemFuncs fsfuncs
int camera_manual(Camera *camera, CameraText *manual, GPContext *context)
int camera_exit(Camera *camera, GPContext *context)
int delete_all_func(CameraFilesystem *fs, const char *folder, void *data, GPContext *context)
int get_file_func(CameraFilesystem *fs, const char *folder, const char *filename, CameraFileType type, CameraFile *file, void *data, GPContext *context)
int file_list_func(CameraFilesystem *fs, const char *folder, CameraList *list, void *data, GPContext *context)
int set_info_func(CameraFilesystem *fs, const char *folder, const char *file, CameraFileInfo info, void *data, GPContext *context)
int delete_file_func(CameraFilesystem *fs, const char *folder, const char *filename, void *data, GPContext *context)
int camera_about(Camera *camera, CameraText *about, GPContext *context)
int camera_init(Camera *camera, GPContext *context)