* frontends/command-line: Remove more globals. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4497 67ed7778-7388-44ab-90cf-0a291f65f57c
54 lines
1.5 KiB
C
54 lines
1.5 KiB
C
/* main.h
|
|
*
|
|
* Copyright (C) 2002 Lutz Müller <lutz@users.sourceforge.net>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __MAIN_H__
|
|
#define __MAIN_H__
|
|
|
|
#include <gphoto2-camera.h>
|
|
|
|
#define OPTION_CALLBACK(_a) int _a (char *arg)
|
|
|
|
typedef struct _Option Option;
|
|
struct _Option {
|
|
char short_id[3];
|
|
char long_id[20];
|
|
char argument[32];
|
|
char description[35];
|
|
OPTION_CALLBACK((*execute));
|
|
int required;
|
|
};
|
|
|
|
#define MAX_IMAGE_NUMBER 1024
|
|
|
|
#ifdef WIN32
|
|
#include <io.h>
|
|
#define VERSION "2"
|
|
#endif
|
|
|
|
void cli_error_print(char *format, ...);
|
|
|
|
int save_file_to_file (Camera *camera, GPContext *context,
|
|
const char *folder, const char *filename,
|
|
CameraFileType type);
|
|
|
|
int get_file_common (char *arg, CameraFileType type);
|
|
|
|
#endif /* __MAIN_H__ */
|