1 /* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /*
3    Copyright (C) 2010 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_CLIENT_GSTAUDIO_H__
19 #define __SPICE_CLIENT_GSTAUDIO_H__
20 
21 #include "spice-client.h"
22 #include "spice-audio.h"
23 
24 G_BEGIN_DECLS
25 
26 #define SPICE_TYPE_GSTAUDIO            (spice_gstaudio_get_type())
27 #define SPICE_GSTAUDIO(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), SPICE_TYPE_GSTAUDIO, SpiceGstaudio))
28 #define SPICE_GSTAUDIO_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), SPICE_TYPE_GSTAUDIO, SpiceGstaudioClass))
29 #define SPICE_IS_GSTAUDIO(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), SPICE_TYPE_GSTAUDIO))
30 #define SPICE_IS_GSTAUDIO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SPICE_TYPE_GSTAUDIO))
31 #define SPICE_GSTAUDIO_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), SPICE_TYPE_GSTAUDIO, SpiceGstaudioClass))
32 
33 
34 typedef struct _SpiceGstaudio SpiceGstaudio;
35 typedef struct _SpiceGstaudioClass SpiceGstaudioClass;
36 typedef struct _SpiceGstaudioPrivate SpiceGstaudioPrivate;
37 
38 struct _SpiceGstaudio {
39     SpiceAudio parent;
40     SpiceGstaudioPrivate *priv;
41     /* Do not add fields to this struct */
42 };
43 
44 struct _SpiceGstaudioClass {
45     SpiceAudioClass parent_class;
46     /* Do not add fields to this struct */
47 };
48 
49 GType spice_gstaudio_get_type(void);
50 
51 SpiceGstaudio *spice_gstaudio_new(SpiceSession *session,
52                                   GMainContext *context, const char *name);
53 
54 G_END_DECLS
55 
56 #endif /* __SPICE_CLIENT_GSTAUDIO_H__ */
57