Files
libgphoto2/frontends/command-line/main.h
Marcus Meissner 8bbb296dd0 * frontends/command-line/main.*: Dump USB class style entries into
the usb.usermap too.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4382 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-04 17:24:33 +00:00

59 lines
1.3 KiB
C

#include <config.h>
#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
#define GP_USB_HOTPLUG_MATCH_DEV_CLASS 0x0080
#define GP_USB_HOTPLUG_MATCH_DEV_SUBCLASS 0x0100
#define GP_USB_HOTPLUG_MATCH_DEV_PROTOCOL 0x0200
#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 DISABLE_DEBUGGING
void cli_debug_print(char *format, ...);
#else
#ifdef __GNUC__
#define cli_debug_print(format, args...) /**/
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define cli_debug_print(...) /**/
#else
#define cli_debug_print (void)
#endif
#endif
void cli_error_print(char *format, ...);
int save_file_to_file (const char *folder, const char *filename,
CameraFileType type);
int get_file_common (char *arg, CameraFileType type);
/*
* Local Variables:
* c-file-style:"linux"
* indent-tabs-mode:t
* End:
*/