1 /* Aravis - Digital camera library 2 * 3 * Copyright © 2009-2012 Emmanuel Pacaud 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library 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 GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General 16 * Public License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 * 20 * Author: Emmanuel Pacaud <emmanuel@gnome.org> 21 */ 22 23 #ifndef ARV_GC_INTEGER_NODE_H 24 #define ARV_GC_INTEGER_NODE_H 25 26 #if !defined (ARV_H_INSIDE) && !defined (ARAVIS_COMPILATION) 27 #error "Only <arv.h> can be included directly." 28 #endif 29 30 #include <arvtypes.h> 31 #include <arvgcfeaturenode.h> 32 #include <arvgcpropertynode.h> 33 34 G_BEGIN_DECLS 35 36 #define ARV_TYPE_GC_INTEGER_NODE (arv_gc_integer_node_get_type ()) 37 #define ARV_GC_INTEGER_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ARV_TYPE_GC_INTEGER_NODE, ArvGcIntegerNode)) 38 #define ARV_GC_INTEGER_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ARV_TYPE_GC_INTEGER_NODE, ArvGcIntegerNodeClass)) 39 #define ARV_IS_GC_INTEGER_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ARV_TYPE_GC_INTEGER_NODE)) 40 #define ARV_IS_GC_INTEGER_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ARV_TYPE_GC_INTEGER_NODE)) 41 #define ARV_GC_INTEGER_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ARV_TYPE_GC_INTEGER_NODE, ArvGcIntegerNodeClass)) 42 43 typedef struct _ArvGcIntegerNodeClass ArvGcIntegerNodeClass; 44 45 struct _ArvGcIntegerNode { 46 ArvGcFeatureNode node; 47 48 ArvGcPropertyNode *value; 49 ArvGcPropertyNode *minimum; 50 ArvGcPropertyNode *maximum; 51 ArvGcPropertyNode *increment; 52 ArvGcPropertyNode *unit; 53 54 ArvGcPropertyNode *index; 55 GSList *value_indexed_nodes; 56 ArvGcPropertyNode *value_default; 57 }; 58 59 struct _ArvGcIntegerNodeClass { 60 ArvGcFeatureNodeClass parent_class; 61 }; 62 63 GType arv_gc_integer_node_get_type (void); 64 ArvGcNode * arv_gc_integer_node_new (void); 65 66 G_END_DECLS 67 68 #endif 69