summaryrefslogtreecommitdiff
path: root/examples/sample-photobooth.c
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2018-04-16 19:25:28 +0200
committerMarcus Meissner <marcus@jet.franken.de>2018-04-16 19:25:28 +0200
commit76bfee1646bc024ba249eaae3419588a3a5187ec (patch)
treed52749f61bbd7f81755fa62c11609428c40327b0 /examples/sample-photobooth.c
parent194e75ed07cbb17eec642e13775118d72df07a4f (diff)
downloadlibgphoto2-76bfee1646bc024ba249eaae3419588a3a5187ec.tar.gz
free various event data
added GP_EVENT_FILE_CHANGED
Diffstat (limited to 'examples/sample-photobooth.c')
-rw-r--r--examples/sample-photobooth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/sample-photobooth.c b/examples/sample-photobooth.c
index 67588accd..53271fc79 100644
--- a/examples/sample-photobooth.c
+++ b/examples/sample-photobooth.c
@@ -221,6 +221,11 @@ main(int argc, char **argv) {
fprintf (stderr, "saved to %s\n", output_file);
break;
}
+ case GP_EVENT_FILE_CHANGED:
+ path = (CameraFilePath*)evtdata;
+ printf("File changed on camera: %s / %s\n", path->folder, path->name);
+ free (evtdata);
+ break;
case GP_EVENT_FOLDER_ADDED:
path = (CameraFilePath*)evtdata;
printf("Folder added on camera: %s / %s\n", path->folder, path->name);