Files
libgphoto2/frontends/command-line/main.h
Hans Ulrich Niedermann c45d6e0b8f Fixed Bug #490542: wrong match_flags at --print-usb-usermap
Thanks to John McPherson for reporting this


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3578 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-24 12:31:05 +00:00

46 lines
974 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"
#define GP_USB_HOTPLUG_MATCH_VENDOR_ID 0x0001
#define GP_USB_HOTPLUG_MATCH_PRODUCT_ID 0x0002
#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;
#ifndef DISPABLE_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);
/*
* Local Variables:
* c-file-style:"linux"
* indent-tabs-mode:t
* End:
*/