git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2556 67ed7778-7388-44ab-90cf-0a291f65f57c
31 lines
742 B
C
31 lines
742 B
C
#include <gphoto2.h>
|
|
|
|
/* Make it easy to add command-line options */
|
|
|
|
#define OPTION_CALLBACK(_a) int _a (char *arg)
|
|
#define SHORT_OPTION "-"
|
|
#define LONG_OPTION "--"
|
|
#define MAX_IMAGE_NUMBER 1024
|
|
|
|
#define GP_USB_HOTPLUG_SCRIPT "usbcam"
|
|
|
|
#ifdef WIN32
|
|
#include <io.h>
|
|
#define VERSION "2"
|
|
#endif
|
|
|
|
typedef struct {
|
|
char short_id[3];
|
|
char long_id[20];
|
|
char argument[32];
|
|
char description[35];
|
|
OPTION_CALLBACK((*execute));
|
|
int required;
|
|
} Option;
|
|
|
|
void cli_debug_print(char *format, ...);
|
|
void cli_error_print(char *format, ...);
|
|
int save_picture_to_file(char *folder, char *filename, CameraFileType type);
|
|
int get_picture_common(char *arg, CameraFileType type);
|
|
int capture_generic (int type, char *capture_choice);
|