diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2018-04-16 19:25:28 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2018-04-16 19:25:28 +0200 |
commit | 76bfee1646bc024ba249eaae3419588a3a5187ec (patch) | |
tree | d52749f61bbd7f81755fa62c11609428c40327b0 /examples/sample-photobooth.c | |
parent | 194e75ed07cbb17eec642e13775118d72df07a4f (diff) | |
download | libgphoto2-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.c | 5 |
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); |