2 * Copyright (C) 2009 Nokia Corporation.
3 * Copyright (C) 2007, 2008 OpenedHand Ltd.
5 * Authors: Zeeshan Ali (Khattak) <zeeshan.ali@nokia.com>
6 * <zeeshanak@gnome.org>
7 * Jorn Baayen <jorn@openedhand.com>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
25 #ifndef __GUPNP_PROTOCOL_INFO_H__
26 #define __GUPNP_PROTOCOL_INFO_H__
29 #include <glib-object.h>
31 #include "gupnp-dlna.h"
36 gupnp_protocol_info_get_type (void) G_GNUC_CONST;
38 #define GUPNP_TYPE_PROTOCOL_INFO \
39 (gupnp_protocol_info_get_type ())
40 #define GUPNP_PROTOCOL_INFO(obj) \
41 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
42 GUPNP_TYPE_PROTOCOL_INFO, \
44 #define GUPNP_PROTOCOL_INFO_CLASS(obj) \
45 (G_TYPE_CHECK_CLASS_CAST ((obj), \
46 GUPNP_TYPE_PROTOCOL_INFO, \
47 GUPnPProtocolInfoClass))
48 #define GUPNP_IS_PROTOCOL_INFO(obj) \
49 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
50 GUPNP_TYPE_PROTOCOL_INFO))
51 #define GUPNP_IS_PROTOCOL_INFO_CLASS(obj) \
52 (G_TYPE_CHECK_CLASS_TYPE ((obj), \
53 GUPNP_TYPE_PROTOCOL_INFO))
54 #define GUPNP_PROTOCOL_INFO_GET_CLASS(obj) \
55 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
56 GUPNP_TYPE_PROTOCOL_INFO, \
57 GUPnPProtocolInfoClass))
59 typedef struct _GUPnPProtocolInfoPrivate GUPnPProtocolInfoPrivate;
64 GUPnPProtocolInfoPrivate *priv;
68 GObjectClass parent_class;
71 void (* _gupnp_reserved1) (void);
72 void (* _gupnp_reserved2) (void);
73 void (* _gupnp_reserved3) (void);
74 void (* _gupnp_reserved4) (void);
75 } GUPnPProtocolInfoClass;
78 gupnp_protocol_info_new (void);
81 gupnp_protocol_info_new_from_string (const char *protocol_info,
85 gupnp_protocol_info_to_string (GUPnPProtocolInfo *info);
88 gupnp_protocol_info_is_compatible (GUPnPProtocolInfo *info1,
89 GUPnPProtocolInfo *info2);
92 gupnp_protocol_info_set_protocol (GUPnPProtocolInfo *info,
93 const char *protocol);
96 gupnp_protocol_info_set_network (GUPnPProtocolInfo *info,
100 gupnp_protocol_info_set_mime_type (GUPnPProtocolInfo *info,
101 const char *mime_type);
104 gupnp_protocol_info_set_dlna_profile (GUPnPProtocolInfo *info,
105 const char *profile);
108 gupnp_protocol_info_set_play_speeds (GUPnPProtocolInfo *info,
109 const char **speeds);
112 gupnp_protocol_info_set_dlna_conversion (GUPnPProtocolInfo *info,
113 GUPnPDLNAConversion conversion);
116 gupnp_protocol_info_set_dlna_operation (GUPnPProtocolInfo *info,
117 GUPnPDLNAOperation operation);
120 gupnp_protocol_info_set_dlna_flags (GUPnPProtocolInfo *info,
121 GUPnPDLNAFlags flags);
124 gupnp_protocol_info_get_protocol (GUPnPProtocolInfo *info);
127 gupnp_protocol_info_get_network (GUPnPProtocolInfo *info);
130 gupnp_protocol_info_get_mime_type (GUPnPProtocolInfo *info);
133 gupnp_protocol_info_get_dlna_profile (GUPnPProtocolInfo *info);
136 gupnp_protocol_info_get_play_speeds (GUPnPProtocolInfo *info);
139 gupnp_protocol_info_get_dlna_conversion (GUPnPProtocolInfo *info);
142 gupnp_protocol_info_get_dlna_operation (GUPnPProtocolInfo *info);
145 gupnp_protocol_info_get_dlna_flags (GUPnPProtocolInfo *info);
149 #endif /* __GUPNP_PROTOCOL_INFO_H__ */