Files
libgphoto2/frontends/command-line/main.h
Dan Fandrich c00c27f9db * libgphoto2_port/acconfig.h
* libgphoto2_port/configure.in
	* libgphoto2_port/libgphoto2_port/gphoto2-port-log.c
	* libgphoto2_port/libgphoto2_port/gphoto2-port-log.h
	* frontends/command-line/main.c
	* frontends/command-line/main.h
	* acconfig.h
	* configure.in: Added --disable-debugging option to configure


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3364 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-03 01:42:29 +00:00

37 lines
795 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;
#ifdef ENABLE_DEBUGGING
void cli_debug_print(char *format, ...);
#else
#define cli_debug_print(format, args...) /**/
#endif
void cli_error_print(char *format, ...);
int save_picture_to_file (const char *folder, const char *filename,
CameraFileType type);
int get_picture_common (char *arg, CameraFileType type);