1 /* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /*
3    Copyright (C) 2013 Red Hat, Inc.
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.1 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 Public
16    License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef __SPICE_WEBDAV_CHANNEL_H__
19 #define __SPICE_WEBDAV_CHANNEL_H__
20 
21 #if !defined(__SPICE_CLIENT_H_INSIDE__) && !defined(SPICE_COMPILATION)
22 #warning "Only <spice-client.h> can be included directly"
23 #endif
24 
25 #include <gio/gio.h>
26 #include "spice-client.h"
27 #include "channel-port.h"
28 
29 G_BEGIN_DECLS
30 
31 #define SPICE_TYPE_WEBDAV_CHANNEL            (spice_webdav_channel_get_type())
32 #define SPICE_WEBDAV_CHANNEL(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), SPICE_TYPE_WEBDAV_CHANNEL, SpiceWebdavChannel))
33 #define SPICE_WEBDAV_CHANNEL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), SPICE_TYPE_WEBDAV_CHANNEL, SpiceWebdavChannelClass))
34 #define SPICE_IS_WEBDAV_CHANNEL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), SPICE_TYPE_WEBDAV_CHANNEL))
35 #define SPICE_IS_WEBDAV_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SPICE_TYPE_WEBDAV_CHANNEL))
36 #define SPICE_WEBDAV_CHANNEL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), SPICE_TYPE_WEBDAV_CHANNEL, SpiceWebdavChannelClass))
37 
38 typedef struct _SpiceWebdavChannel SpiceWebdavChannel;
39 typedef struct _SpiceWebdavChannelClass SpiceWebdavChannelClass;
40 typedef struct _SpiceWebdavChannelPrivate SpiceWebdavChannelPrivate;
41 
42 /**
43  * SpiceWebdavChannel:
44  *
45  * The #SpiceWebdavChannel struct is opaque and should not be accessed directly.
46  */
47 struct _SpiceWebdavChannel {
48     SpicePortChannel parent;
49 
50     /*< private >*/
51     SpiceWebdavChannelPrivate *priv;
52     /* Do not add fields to this struct */
53 };
54 
55 /**
56  * SpiceWebdavChannelClass:
57  * @parent_class: Parent class.
58  *
59  * Class structure for #SpiceWebdavChannel.
60  */
61 struct _SpiceWebdavChannelClass {
62     SpicePortChannelClass parent_class;
63 
64     /*< private >*/
65     /* Do not add fields to this struct */
66 };
67 
68 GType spice_webdav_channel_get_type(void);
69 
70 G_END_DECLS
71 
72 #endif /* __SPICE_WEBDAV_CHANNEL_H__ */
73