3 * Copyright (C) 2006 Theodore Kilgore <kilgota@auburn.edu>
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.
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.
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., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
25 #include <gphoto2/gphoto2-port.h>
27 struct _CameraPrivateLibrary {
28 unsigned char *catalog;
30 int last_fetched_entry;
31 int data_reg_accessed;
32 unsigned long data_to_read;
33 unsigned char *data_cache;
34 int data_used_from_block;
38 int jl2005a_init (Camera *camera, GPPort *port,
39 CameraPrivateLibrary *priv);
40 int jl2005a_get_pic_data_size (GPPort *port, int n);
41 int jl2005a_get_pic_width (GPPort *port);
42 int jl2005a_get_pic_height (GPPort *port);
43 int set_usb_in_endpoint (Camera *camera, int inep);
44 int jl2005a_read_picture_data ( Camera *camera,
45 GPPort *port, unsigned char *data,
47 int jl2005a_reset (Camera *camera, GPPort *port);
48 int jl2005a_read_info_byte(GPPort *port, int n);
49 int jl2005a_shortquery(GPPort *port, int n);
50 int jl2005a_decompress (unsigned char *inp, unsigned char *outp, int width,