Debian Codegraph @

src/av-cp/didl-dialog.h

raw
1 /*
2 * Copyright (C) 2016 Jens Georg <[email protected]>
3 *
4 * Authors: Jens Georg <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef DIDL_DIALOG_H
22 #define DIDL_DIALOG_H
23
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27
28 #include <libgupnp/gupnp.h>
29
30 G_BEGIN_DECLS
31
32 GType
33 av_cp_didl_dialog_get_type (void);
34
35 #define AV_CP_TYPE_DIDL_DIALOG (av_cp_didl_dialog_get_type ())
36 #define AV_CP_DIDL_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
37 AV_CP_TYPE_DIDL_DIALOG, \
38 AVCPDidlDialog))
39 #define AV_CP_DIDL_DIALOG_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), \
40 AV_CP_TYPE_DIDL_DIALOG, \
41 AVCPDidlDialogClass))
42 #define AV_CP_IS_DIDL_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
43 AV_CP_TYPE_DIDL_DIALOG))
44 #define AV_CP_IS_DIDL_DIALOG_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \
45 AV_CP_TYPE_DIDL_DIALOG))
46 #define AV_CP_DIDL_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
47 AV_CP_TYPE_DIDL_DIALOG, \
48 AVCPDidlDialogDeviceClass))
49
50 typedef struct _AVCPDidlDialog AVCPDidlDialog;
51 typedef struct _AVCPDidlDialogClass AVCPDidlDialogClass;
52
53 AVCPDidlDialog *av_cp_didl_dialog_new (void);
54 void av_cp_didl_dialog_set_xml (AVCPDidlDialog *self, const char *xml);
55
56 G_END_DECLS
57
58 #endif /* DIDL_DIALOG_H */