1 /* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /*
3    Copyright (C) 2012 Red Hat, Inc.
4 
5    Red Hat Authors:
6    Hans de Goede <hdegoede@redhat.com>
7 
8    This library is free software; you can redistribute it and/or
9    modify it under the terms of the GNU Lesser General Public
10    License as published by the Free Software Foundation; either
11    version 2.1 of the License, or (at your option) any later version.
12 
13    This library is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    Lesser General Public License for more details.
17 
18    You should have received a copy of the GNU Lesser General Public
19    License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 */
21 #ifndef __SPICE_USB_DEVICE_WIDGET_H__
22 #define __SPICE_USB_DEVICE_WIDGET_H__
23 
24 #if !defined(__SPICE_CLIENT_GTK_H_INSIDE__) && !defined(SPICE_COMPILATION)
25 #warning "Only <spice-client-gtk.h> can be included directly"
26 #endif
27 
28 #include <gtk/gtk.h>
29 #include "spice-client.h"
30 
31 G_BEGIN_DECLS
32 
33 #define SPICE_TYPE_USB_DEVICE_WIDGET            (spice_usb_device_widget_get_type ())
34 #define SPICE_USB_DEVICE_WIDGET(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPICE_TYPE_USB_DEVICE_WIDGET, SpiceUsbDeviceWidget))
35 #define SPICE_USB_DEVICE_WIDGET_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SPICE_TYPE_USB_DEVICE_WIDGET, SpiceUsbDeviceWidgetClass))
36 #define SPICE_IS_USB_DEVICE_WIDGET(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPICE_TYPE_USB_DEVICE_WIDGET))
37 #define SPICE_IS_USB_DEVICE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPICE_TYPE_USB_DEVICE_WIDGET))
38 #define SPICE_USB_DEVICE_WIDGET_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SPICE_TYPE_USB_DEVICE_WIDGET, SpiceUsbDeviceWidgetClass))
39 
40 /**
41  * SpiceUsbDeviceWidget:
42  *
43  * The #SpiceUsbDeviceWidget struct is opaque and should not be accessed directly.
44  */
45 typedef struct _SpiceUsbDeviceWidget SpiceUsbDeviceWidget;
46 /**
47  * SpiceUsbDeviceWidgetClass:
48  *
49  * Class structure for #SpiceUsbDeviceWidget. It is opaque and should not be accessed directly.
50  */
51 typedef struct _SpiceUsbDeviceWidgetClass SpiceUsbDeviceWidgetClass;
52 typedef struct _SpiceUsbDeviceWidgetPrivate SpiceUsbDeviceWidgetPrivate;
53 
54 GType spice_usb_device_widget_get_type(void);
55 GtkWidget *spice_usb_device_widget_new(SpiceSession    *session,
56                                        const gchar     *device_format_string);
57 
58 G_END_DECLS
59 
60 #endif /* __SPICE_USB_DEVICE_WIDGET_H__ */
61