Remove generated files
[framework/connectivity/libgphoto2.git] / camlibs / jl2005a / jl2005a.h
1 /* jl2005a.h
2  *
3  * Copyright (C) 2006 Theodore Kilgore <kilgota@auburn.edu>
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., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __jl2005a_H__
22 #define __jl2005a_H__
23
24 #include <unistd.h>
25 #include <gphoto2/gphoto2-port.h>
26
27 struct _CameraPrivateLibrary {
28         unsigned char *catalog;
29         int nb_entries;
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;
35 };
36
37
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, 
46                                 unsigned int size);
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,
51                                 int height);
52
53 #endif
54