Files
libgphoto2/frontends/command-line/main.h
Lutz Mueller 3d950c6be6 2001-08-25 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-file.h:
        * include/gphoto2-library.h:
        * include/gphoto2-camera.h: Support for raw data.
        * libpghoto2/file.c: Adjust to above changes.
        * libgphoto2/frontend.c: Kill a warning.
        * libgphoto2/libgphoto-2.0.pc.in: CFlags -> Cflags
        * libgphoto2/widget.c: Include gphoto2-result.h instead of gphoto2.h
        * camlibs/*: Prepare support for download of raw data. Remove lots of
        redundant code (people just copied & pasted the code for file_get
        and file_get_preview...). I hope everything works as it did before.
        * frontend/command-line/*: Prepare support for download of raw data


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2072 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-25 18:14:25 +00:00

29 lines
702 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
#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);