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
This commit is contained in:
@@ -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 <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined HAVE_STDIO_H
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#if defined HAVE_STDLIB_H
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#if defined HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
/* These better be around. */
|
||||
#include <gphoto2.h>
|
||||
#include <gpio.h>
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user