Files
libgphoto2/include/gphoto2-debug.h
Lutz Mueller 4afcf0d3f1 2001-10-04 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/konica/library.c: const
        * frontents/command-line/main.c: Print out last debugging messages
        on error
        * include/gphoto2-debug.h:
        * libgphoto2/debug.c: Remember history
        * include/gphoto2-result.h:
        * libgphoto2/result.c: Revert the result_as_description thing


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2375 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-04 16:11:43 +00:00

42 lines
1.4 KiB
C

/* gphoto2-debug.h
*
* Copyright (C) 2001 Lutz Müller
*
* 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 __GPHOTO2_DEBUG_H__
#define __GPHOTO2_DEBUG_H__
#include <gphoto2-port.h>
/* The debug levels (GP_DEBUG_*) are defined in gphoto2-port.h */
void gp_debug_printf (int level, const char *id, const char *format, ...);
void gp_debug_set_level (int level);
int gp_debug_get_level (void);
/* Custom debugging function */
typedef void (* GPDebugFunc) (const char *id, const char *msg, void *data);
void gp_debug_set_func (GPDebugFunc func, void *data);
/* History */
int gp_debug_history_set_size (unsigned int size);
const char *gp_debug_history_get (void);
#endif /* __GPHOTO2_DEBUG_H__ */