| 1 |
#ifndef CAMLIBS_PANASONIC_COOLSHOT_LIBRARY_H |
| 2 |
#define CAMLIBS_PANASONIC_COOLSHOT_LIBRARY_H |
| 3 |
|
| 4 |
/****************************************************************/ |
| 5 |
/* library.h - Gphoto2 library for accessing the Panasonic */ |
| 6 |
/* Coolshot KXL-600A & KXL-601A digital cameras. */ |
| 7 |
/* */ |
| 8 |
/* Copyright 2001 Chris Pinkham */ |
| 9 |
/* */ |
| 10 |
/* Author: Chris Pinkham <[email protected]> */ |
| 11 |
/* */ |
| 12 |
/* This library is free software; you can redistribute it */ |
| 13 |
/* and/or modify it under the terms of the GNU Library General */ |
| 14 |
/* Public License as published by the Free Software Foundation; */ |
| 15 |
/* either version 2 of the License, or (at your option) any */ |
| 16 |
/* later version. */ |
| 17 |
/* */ |
| 18 |
/* This library is distributed in the hope that it will be */ |
| 19 |
/* useful, but WITHOUT ANY WARRANTY; without even the implied */ |
| 20 |
/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ |
| 21 |
/* PURPOSE. See the GNU Library General Public License for */ |
| 22 |
/* more details. */ |
| 23 |
/* */ |
| 24 |
/* You should have received a copy of the GNU Library General */ |
| 25 |
/* Public License along with this library; if not, write to the */ |
| 26 |
/* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,*/ |
| 27 |
/* Boston, MA 02110-1301 USA */ |
| 28 |
/****************************************************************/ |
| 29 |
|
| 30 |
#define CHECK(result) {int res; res = result; if (res < 0) return (res);} |
| 31 |
|
| 32 |
int coolshot_sm (Camera *camera); |
| 33 |
int coolshot_sb (Camera *camera, int speed); |
| 34 |
int coolshot_enq (Camera *camera); |
| 35 |
int coolshot_file_count (Camera *camera); |
| 36 |
int coolshot_request_image (Camera *camera, CameraFile *file, char *buf, int *len, int number, GPContext *context); |
| 37 |
int coolshot_request_thumbnail (Camera *camera, CameraFile *file, char *buf, int *len, int number, GPContext *context); |
| 38 |
int coolshot_build_thumbnail (char *data, int *size); |
| 39 |
|
| 40 |
#endif /* !defined(CAMLIBS_PANASONIC_COOLSHOT_LIBRARY_H) */ |