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