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 #if !defined (ARV_H_INSIDE) && !defined (ARAVIS_COMPILATION)
24 #error "Only <arv.h> can be included directly."
25 #endif
26 
27 #ifndef ARV_GV_DEVICE_H
28 #define ARV_GV_DEVICE_H
29 
30 #include <arvtypes.h>
31 #include <arvdevice.h>
32 #include <arvgvstream.h>
33 #include <gio/gio.h>
34 
35 G_BEGIN_DECLS
36 
37 #define ARV_TYPE_GV_DEVICE             (arv_gv_device_get_type ())
38 #define ARV_GV_DEVICE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), ARV_TYPE_GV_DEVICE, ArvGvDevice))
39 #define ARV_GV_DEVICE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), ARV_TYPE_GV_DEVICE, ArvGvDeviceClass))
40 #define ARV_IS_GV_DEVICE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ARV_TYPE_GV_DEVICE))
41 #define ARV_IS_GV_DEVICE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), ARV_TYPE_GV_DEVICE))
42 #define ARV_GV_DEVICE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), ARV_TYPE_GV_DEVICE, ArvGvDeviceClass))
43 
44 GType arv_gv_device_get_type (void);
45 
46 ArvDevice * 		arv_gv_device_new 				(GInetAddress *interface_address, GInetAddress *device_address);
47 
48 guint64 		arv_gv_device_get_timestamp_tick_frequency	(ArvGvDevice *gv_device);
49 GRegex * 		arv_gv_device_get_url_regex 			(void);
50 
51 GSocketAddress *	arv_gv_device_get_interface_address  		(ArvGvDevice *device);
52 GSocketAddress *	arv_gv_device_get_device_address  		(ArvGvDevice *device);
53 
54 guint			arv_gv_device_get_packet_size 			(ArvGvDevice *gv_device);
55 void			arv_gv_device_set_packet_size 			(ArvGvDevice *gv_device, gint packet_size);
56 guint			arv_gv_device_auto_packet_size 			(ArvGvDevice *gv_device);
57 
58 ArvGvStreamOption	arv_gv_device_get_stream_options		(ArvGvDevice *gv_device);
59 void 			arv_gv_device_set_stream_options 		(ArvGvDevice *gv_device, ArvGvStreamOption options);
60 
61 G_END_DECLS
62 
63 #endif
64