1 /* Aravis - Digital camera library 2 * 3 * Copyright © 2009-2016 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_FAKE_DEVICE_H 24 #define ARV_FAKE_DEVICE_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 <arvdevice.h> 32 33 G_BEGIN_DECLS 34 35 #define ARV_TYPE_FAKE_DEVICE (arv_fake_device_get_type ()) 36 #define ARV_FAKE_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ARV_TYPE_FAKE_DEVICE, ArvFakeDevice)) 37 #define ARV_FAKE_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ARV_TYPE_FAKE_DEVICE, ArvFakeDeviceClass)) 38 #define ARV_IS_FAKE_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ARV_TYPE_FAKE_DEVICE)) 39 #define ARV_IS_FAKE_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ARV_TYPE_FAKE_DEVICE)) 40 #define ARV_FAKE_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ARV_TYPE_FAKE_DEVICE, ArvFakeDeviceClass)) 41 42 GType arv_fake_device_get_type (void); 43 44 ArvDevice * arv_fake_device_new (const char *serial_number); 45 ArvFakeCamera * arv_fake_device_get_fake_camera (ArvFakeDevice *device); 46 47 G_END_DECLS 48 49 #endif 50