summaryrefslogtreecommitdiff
path: root/vapi/gphoto.h
blob: f40b84cd486f545d4554906baeba50a9c0dc9be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright 2009-2014 Yorba Foundation
 *
 * 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 */