From 5d11b52312f91cffcc8b83024c24e4ea805faab0 Mon Sep 17 00:00:00 2001 From: Scott Fritzinger Date: Thu, 31 Aug 2000 18:17:42 +0000 Subject: [PATCH] added debug types git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@999 67ed7778-7388-44ab-90cf-0a291f65f57c --- include/gphoto2-core.h | 7 ++++++- include/gphoto2-datatypes.h | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/gphoto2-core.h b/include/gphoto2-core.h index 92eca79da..3f8fe3c3e 100644 --- a/include/gphoto2-core.h +++ b/include/gphoto2-core.h @@ -26,10 +26,15 @@ int gp_exit(); + /* Debugging functions */ + /* ============================================================================== */ + void gp_debug_printf(int level, char *id, char *format, ...); + /* Print debugging messages */ + /* Frontend registration */ /* ============================================================================== */ int gp_frontend_register(CameraStatus status, CameraProgress progress, - CameraMessage message, CameraConfirm confirm); + CameraMessage message, CameraConfirm confirm); /* register the frontend's feedback functions */ /* Port information */ diff --git a/include/gphoto2-datatypes.h b/include/gphoto2-datatypes.h index fbf036e65..c487ef7b8 100644 --- a/include/gphoto2-datatypes.h +++ b/include/gphoto2-datatypes.h @@ -13,6 +13,12 @@ #define GP_ERROR -1 #define GP_ERROR_NONCRITICAL -2 +/* Debugging levels for gp_init */ +#define GP_DEBUG_NONE 0 +#define GP_DEBUG_LOW 1 +#define GP_DEBUG_MEDIUM 2 +#define GP_DEBUG_HIGH 3 + /* Macros ---------------------------------------------------------------- */