From a3681f7aff22895328bab81b185008a47bcb3ce2 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Thu, 4 Oct 2001 21:22:01 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2382 67ed7778-7388-44ab-90cf-0a291f65f57c --- tests/test-gphoto2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/test-gphoto2.c b/tests/test-gphoto2.c index 19ee25e02..dba711b4d 100644 --- a/tests/test-gphoto2.c +++ b/tests/test-gphoto2.c @@ -1,9 +1,17 @@ #include #include +#include + #include #define CHECK(f) {int res = f; if (res < 0) {printf ("ERROR: %s\n", gp_result_as_string (res)); exit (1);}} +static void +my_debug_func (const char *id, const char *msg, void *data) +{ + printf ("DEBUG: %s\n", msg); +} + int main (int argc, char *argv []) { @@ -15,6 +23,10 @@ main (int argc, char *argv []) * internally. */ + /* Just to show off a bit... */ + gp_debug_set_level (GP_DEBUG_LOW); + gp_debug_set_func (my_debug_func, NULL); + /* * You'll probably want to access your camera. You will first have * to create a camera (that is, allocating the memory).