| 1 |
/* dc3200.h |
| 2 |
* |
| 3 |
* Copyright (C) 2000,2001,2002 donn morrison - [email protected] |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the |
| 17 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 |
* Boston, MA 02110-1301 USA |
| 19 |
*/ |
| 20 |
|
| 21 |
/**************************************************** |
| 22 |
* kodak dc3200 digital camera driver library * |
| 23 |
* for gphoto2 * |
| 24 |
* * |
| 25 |
* author: donn morrison - [email protected] * |
| 26 |
* date: dec 2000 - jan 2002 * |
| 27 |
* license: gpl * |
| 28 |
* version: 1.6 * |
| 29 |
* * |
| 30 |
****************************************************/ |
| 31 |
|
| 32 |
#ifndef CAMLIBS_KODAK_DC3200_DC3200_H |
| 33 |
#define CAMLIBS_KODAK_DC3200_DC3200_H |
| 34 |
|
| 35 |
#include <gphoto2/gphoto2-camera.h> |
| 36 |
|
| 37 |
#define CMD_LIST_FILES 0 |
| 38 |
#define CMD_GET_PREVIEW 1 |
| 39 |
#define CMD_GET_FILE 2 |
| 40 |
|
| 41 |
#define TIMEOUT 750 |
| 42 |
|
| 43 |
struct _CameraPrivateLibrary { |
| 44 |
int pkt_seqnum; /* sequence number */ |
| 45 |
int cmd_seqnum; /* command seqnum */ |
| 46 |
int rec_seqnum; /* last received seqnum */ |
| 47 |
int debug; |
| 48 |
time_t last; /* remember last recv time */ |
| 49 |
GPContext *context; /* for progress updates */ |
| 50 |
}; |
| 51 |
|
| 52 |
int check_last_use(Camera *camera); |
| 53 |
|
| 54 |
#endif /* !defined(CAMLIBS_KODAK_DC3200_DC3200_H) */ |