Files
libgphoto2/frontends/command-line/main.h
Lutz Mueller d5a4ec11b2 2002-02-08 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line: s/image/file and s/picture/file with
          the exception of capture-image.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4105 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-08 12:58:20 +00:00

55 lines
1.1 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
#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:
*/