*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2382 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Lutz Mueller
2001-10-04 21:22:01 +00:00
parent 14e5a1216b
commit a3681f7aff

View File

@@ -1,9 +1,17 @@
#include <gphoto2-core.h>
#include <gphoto2-camera.h>
#include <gphoto2-debug.h>
#include <stdio.h>
#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).