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 ---------------------------------------------------------------- */