From b7a4f219d82cae9a76c51cd6b45fa5edd12e1ae6 Mon Sep 17 00:00:00 2001 From: Gus Hartmann Date: Mon, 9 Oct 2000 01:46:04 +0000 Subject: [PATCH] Added the GNU GPL boilerplate header and copyright information. Added conditionals for including only header files found by configure. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1150 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/minolta/dimagev/dimagev.h | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/camlibs/minolta/dimagev/dimagev.h b/camlibs/minolta/dimagev/dimagev.h index 7120e6293..dc666e364 100644 --- a/camlibs/minolta/dimagev/dimagev.h +++ b/camlibs/minolta/dimagev/dimagev.h @@ -1,7 +1,43 @@ +/********************************************************************** +* Minolta Dimage V digital camera communication library * +* Copyright (C) 2000 Gus Hartmann * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License as * +* published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* * +* This program 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 General Public License for more details. * +* * +* You should have received a copy of the GNU General Public * +* License along with this program; if not, write to the Free * +* Software Foundation, Inc., 59 Temple Place, Suite 330, * +* Boston, MA 02111-1307 USA * +* * +**********************************************************************/ + +#include "config.h" + +#if defined HAVE_UNISTD_H #include +#endif + +#if defined HAVE_STDIO_H #include +#endif + +#if defined HAVE_STDLIB_H #include +#endif + +#if defined HAVE_STRING_H #include +#endif + +/* These better be around. */ #include #include @@ -29,8 +65,15 @@ #define DIMAGEV_GET_THUMB "\x0d" #define DIMAGEV_SET_IMAGE "\x0e" +/* Using five digits is a bit forward-thinking, since I've never even gotten + enough pictures on a card to fill two digits, but I may as well use all + the eight.three I can. +*/ #define DIMAGEV_FILENAME_FMT "dv%05i.jpg" +/* This struct basically is a NULL-safe string; image data and other buffers + can contain NULLs, and classic C strings won't work. +*/ typedef struct { unsigned int length; unsigned char buffer[1024];