Files
libgphoto2/camlibs/clicksmart310/clicksmart.h
Hans Ulrich Niedermann 0dbeaf7cbf Use consistently named non-reserved CPP macros for header files
C preprocessor macros beginning/ending with underscores are
reserved for system use as well as macros containing a double
underscore anywhere, so application software macros are
supposed to be named differently.

For a header file gphoto2-abilities-list.h, this
consistently uses a macro name
LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H
for the usual

    #ifndef LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H
    #define LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H
    ... content of the header file ...
    #endif /* !defined(LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H) */

Found using "clang -Weverything".

This should work, unless when run with an ancient C preprocessor
which might only the first 8 or 10 characters to distinguish
macro names and ignores the remainder of the name.
2021-10-05 16:07:20 +02:00

53 lines
1.7 KiB
C

/* clicksmart.h
*
* headers for libgphoto2/camlibs/clicksmart310
*
* 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., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
#ifndef CAMLIBS_CLICKSMART310_CLICKSMART_H
#define CAMLIBS_CLICKSMART310_CLICKSMART_H
#include <gphoto2/gphoto2-port.h>
struct _CameraPrivateLibrary {
unsigned char *catalog;
int num_pics;
unsigned char full;
};
int clicksmart_init (GPPort *port, CameraPrivateLibrary *priv);
int clicksmart_get_res_setting (CameraPrivateLibrary *priv, int n);
int clicksmart_read_pic_data (CameraPrivateLibrary *priv,
GPPort *port, unsigned char **data,
int n);
int clicksmart_delete_all_pics (GPPort *port);
int clicksmart_reset (GPPort *port);
int create_jpeg_from_data (unsigned char * dst, unsigned char * src,
int qIndex, int w, int h,
unsigned char format,
int o_size, int *size,
int omit_huffman_table,
int omit_escape);
#endif /* !defined(CAMLIBS_CLICKSMART310_CLICKSMART_H) */