1 /* gtkam-camera.h 2 * 3 * Copyright 2002 Lutz Mueller <lutz@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef __GTKAM_CAMERA_H__ 20 #define __GTKAM_CAMERA_H__ 21 22 #include <gphoto2/gphoto2-camera.h> 23 24 #include <glib-object.h> 25 26 G_BEGIN_DECLS 27 28 #define GTKAM_TYPE_CAMERA (gtkam_camera_get_type()) 29 #define GTKAM_CAMERA(o) (G_TYPE_CHECK_INSTANCE_CAST((o),GTKAM_TYPE_CAMERA,GtkamCamera)) 30 #define GTKAM_IS_CAMERA(o) (G_TYPE_CHECK_INSTANCE_TYPE((o),GTKAM_TYPE_CAMERA)) 31 32 typedef struct _GtkamCamera GtkamCamera; 33 typedef struct _GtkamCameraClass GtkamCameraClass; 34 35 struct _GtkamCamera { 36 GObject parent; 37 38 Camera *camera; 39 gboolean multi; 40 }; 41 42 struct _GtkamCameraClass { 43 GObjectClass parent_class; 44 }; 45 46 GType gtkam_camera_get_type (void); 47 GtkamCamera *gtkam_camera_new (Camera *camera, gboolean multi); 48 49 G_END_DECLS 50 51 #endif /* __GTKAM_CAMERA_H__ */ 52