summaryrefslogtreecommitdiff
path: root/vapi/gphoto.h
blob: 6b2447ecdc9047877b9decbb72821c9c6c57b9a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright 2016 Software Freedom Conservancy Inc.
 *
 * This software is licensed under the GNU LGPL (version 2.1 or later).
 * See the COPYING file in this distribution.
 */

#ifndef GPHOTO_H
#define GPHOTO_H

#define GPHOTO_REF_CAMERA(c)    (gp_camera_ref(c) == GP_OK ? c : NULL)

#define GPHOTO_REF_FILE(c)      (gp_file_ref(c) == GP_OK ? c : NULL)

#define GPHOTO_REF_LIST(c)      (gp_list_ref(c) == GP_OK ? c : NULL)

#define GPHOTO_REF_CONTEXT(c)   (gp_context_ref(c) == GP_OK ? c : NULL)

#endif /* GPHOTO_H */