diff options
author | Theodore Kilgore <kilgota@auburn.edu> | 2007-09-16 23:18:05 +0000 |
---|---|---|
committer | Theodore Kilgore <kilgota@auburn.edu> | 2007-09-16 23:18:05 +0000 |
commit | 1614161db4e42378b4877157642c5337171fead1 (patch) | |
tree | 0c847e40a730e50737fe55f05a6067610552dc95 /camlibs/jl2005a/jl2005a.h | |
parent | c4ae090741d34fe7d8592da024fe62eaa0a4d8cc (diff) | |
download | libgphoto2-1614161db4e42378b4877157642c5337171fead1.tar.gz |
Adding a camlib for jl2005a
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10704 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/jl2005a/jl2005a.h')
-rw-r--r-- | camlibs/jl2005a/jl2005a.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/camlibs/jl2005a/jl2005a.h b/camlibs/jl2005a/jl2005a.h new file mode 100644 index 000000000..24eada664 --- /dev/null +++ b/camlibs/jl2005a/jl2005a.h @@ -0,0 +1,52 @@ +/* jl2005a.h + * + * Copyright (C) 2006 Theodore Kilgore <kilgota@auburn.edu> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __jl2005a_H__ +#define __jl2005a_H__ + +#include <unistd.h> +#include <gphoto2/gphoto2-port.h> + +struct _CameraPrivateLibrary { + unsigned char *catalog; + int nb_entries; + int last_fetched_entry; + int data_reg_accessed; + unsigned long data_to_read; + unsigned char *data_cache; + int data_used_from_block; +}; + + +int jl2005a_init (Camera *camera, GPPort *port, + CameraPrivateLibrary *priv); +int jl2005a_get_pic_data_size (GPPort *port, int n); +int jl2005a_get_pic_width (GPPort *port); +int jl2005a_get_pic_height (GPPort *port); +int set_usb_in_endpoint (Camera *camera, int inep); +int jl2005a_read_picture_data ( Camera *camera, + GPPort *port, unsigned char *data, + unsigned int size); +int jl2005a_reset (Camera *camera, GPPort *port); +int jl2005a_read_info_byte(GPPort *port, int n); +int jl2005a_shortquery(GPPort *port, int n); + +#endif + |