1 /* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 /* 3 Copyright (C) 2011 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_CLIENT_USBREDIR_CHANNEL_H__ 22 #define __SPICE_CLIENT_USBREDIR_CHANNEL_H__ 23 24 #if !defined(__SPICE_CLIENT_H_INSIDE__) && !defined(SPICE_COMPILATION) 25 #warning "Only <spice-client.h> can be included directly" 26 #endif 27 28 #include "spice-client.h" 29 30 G_BEGIN_DECLS 31 32 #define SPICE_TYPE_USBREDIR_CHANNEL (spice_usbredir_channel_get_type()) 33 #define SPICE_USBREDIR_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SPICE_TYPE_USBREDIR_CHANNEL, SpiceUsbredirChannel)) 34 #define SPICE_USBREDIR_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SPICE_TYPE_USBREDIR_CHANNEL, SpiceUsbredirChannelClass)) 35 #define SPICE_IS_USBREDIR_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SPICE_TYPE_USBREDIR_CHANNEL)) 36 #define SPICE_IS_USBREDIR_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SPICE_TYPE_USBREDIR_CHANNEL)) 37 #define SPICE_USBREDIR_CHANNEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), SPICE_TYPE_USBREDIR_CHANNEL, SpiceUsbredirChannelClass)) 38 39 typedef struct _SpiceUsbredirChannel SpiceUsbredirChannel; 40 typedef struct _SpiceUsbredirChannelClass SpiceUsbredirChannelClass; 41 typedef struct _SpiceUsbredirChannelPrivate SpiceUsbredirChannelPrivate; 42 43 /** 44 * SpiceUsbredirChannel: 45 * 46 * The #SpiceUsbredirChannel struct is opaque and should not be accessed directly. 47 */ 48 struct _SpiceUsbredirChannel { 49 SpiceChannel parent; 50 51 /*< private >*/ 52 SpiceUsbredirChannelPrivate *priv; 53 /* Do not add fields to this struct */ 54 }; 55 56 /** 57 * SpiceUsbredirChannelClass: 58 * @parent_class: Parent class. 59 * 60 * Class structure for #SpiceUsbredirChannel. 61 */ 62 struct _SpiceUsbredirChannelClass { 63 SpiceChannelClass parent_class; 64 65 /* signals */ 66 67 /*< private >*/ 68 /* Do not add fields to this struct */ 69 }; 70 71 GType spice_usbredir_channel_get_type(void); 72 73 G_END_DECLS 74 75 #endif /* __SPICE_CLIENT_USBREDIR_CHANNEL_H__ */ 76