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];