|
Packit |
712bc5 |
/*
|
|
Packit |
712bc5 |
* Copyright (C) 2009 Nokia Corporation.
|
|
Packit |
712bc5 |
* Copyright (C) 2007, 2008 OpenedHand Ltd.
|
|
Packit |
712bc5 |
*
|
|
Packit |
712bc5 |
* Authors: Zeeshan Ali (Khattak) <zeeshan.ali@nokia.com>
|
|
Packit |
712bc5 |
* <zeeshanak@gnome.org>
|
|
Packit |
712bc5 |
* Jorn Baayen <jorn@openedhand.com>
|
|
Packit |
712bc5 |
*
|
|
Packit |
712bc5 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
712bc5 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
712bc5 |
* License as published by the Free Software Foundation; either
|
|
Packit |
712bc5 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
712bc5 |
*
|
|
Packit |
712bc5 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
712bc5 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
712bc5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
712bc5 |
* Library General Public License for more details.
|
|
Packit |
712bc5 |
*
|
|
Packit |
712bc5 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
712bc5 |
* License along with this library; if not, write to the
|
|
Packit |
712bc5 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
Packit |
712bc5 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
712bc5 |
*/
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
#ifndef __GUPNP_PROTOCOL_INFO_H__
|
|
Packit |
712bc5 |
#define __GUPNP_PROTOCOL_INFO_H__
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
#include <stdarg.h>
|
|
Packit |
712bc5 |
#include <glib-object.h>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
#include "gupnp-dlna.h"
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
G_BEGIN_DECLS
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
GType
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_type (void) G_GNUC_CONST;
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
#define GUPNP_TYPE_PROTOCOL_INFO \
|
|
Packit |
712bc5 |
(gupnp_protocol_info_get_type ())
|
|
Packit |
712bc5 |
#define GUPNP_PROTOCOL_INFO(obj) \
|
|
Packit |
712bc5 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
|
Packit |
712bc5 |
GUPNP_TYPE_PROTOCOL_INFO, \
|
|
Packit |
712bc5 |
GUPnPProtocolInfo))
|
|
Packit |
712bc5 |
#define GUPNP_PROTOCOL_INFO_CLASS(obj) \
|
|
Packit |
712bc5 |
(G_TYPE_CHECK_CLASS_CAST ((obj), \
|
|
Packit |
712bc5 |
GUPNP_TYPE_PROTOCOL_INFO, \
|
|
Packit |
712bc5 |
GUPnPProtocolInfoClass))
|
|
Packit |
712bc5 |
#define GUPNP_IS_PROTOCOL_INFO(obj) \
|
|
Packit |
712bc5 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
|
|
Packit |
712bc5 |
GUPNP_TYPE_PROTOCOL_INFO))
|
|
Packit |
712bc5 |
#define GUPNP_IS_PROTOCOL_INFO_CLASS(obj) \
|
|
Packit |
712bc5 |
(G_TYPE_CHECK_CLASS_TYPE ((obj), \
|
|
Packit |
712bc5 |
GUPNP_TYPE_PROTOCOL_INFO))
|
|
Packit |
712bc5 |
#define GUPNP_PROTOCOL_INFO_GET_CLASS(obj) \
|
|
Packit |
712bc5 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
|
|
Packit |
712bc5 |
GUPNP_TYPE_PROTOCOL_INFO, \
|
|
Packit |
712bc5 |
GUPnPProtocolInfoClass))
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
typedef struct _GUPnPProtocolInfoPrivate GUPnPProtocolInfoPrivate;
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
typedef struct {
|
|
Packit |
712bc5 |
GObject parent;
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
GUPnPProtocolInfoPrivate *priv;
|
|
Packit |
712bc5 |
} GUPnPProtocolInfo;
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
typedef struct {
|
|
Packit |
712bc5 |
GObjectClass parent_class;
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
/* future padding */
|
|
Packit |
712bc5 |
void (* _gupnp_reserved1) (void);
|
|
Packit |
712bc5 |
void (* _gupnp_reserved2) (void);
|
|
Packit |
712bc5 |
void (* _gupnp_reserved3) (void);
|
|
Packit |
712bc5 |
void (* _gupnp_reserved4) (void);
|
|
Packit |
712bc5 |
} GUPnPProtocolInfoClass;
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
GUPnPProtocolInfo *
|
|
Packit |
712bc5 |
gupnp_protocol_info_new (void);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
GUPnPProtocolInfo *
|
|
Packit |
712bc5 |
gupnp_protocol_info_new_from_string (const char *protocol_info,
|
|
Packit |
712bc5 |
GError **error);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
char *
|
|
Packit |
712bc5 |
gupnp_protocol_info_to_string (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
gboolean
|
|
Packit |
712bc5 |
gupnp_protocol_info_is_compatible (GUPnPProtocolInfo *info1,
|
|
Packit |
712bc5 |
GUPnPProtocolInfo *info2);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
void
|
|
Packit |
712bc5 |
gupnp_protocol_info_set_protocol (GUPnPProtocolInfo *info,
|
|
Packit |
712bc5 |
const char *protocol);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
void
|
|
Packit |
712bc5 |
gupnp_protocol_info_set_network (GUPnPProtocolInfo *info,
|
|
Packit |
712bc5 |
const char *network);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
void
|
|
Packit |
712bc5 |
gupnp_protocol_info_set_mime_type (GUPnPProtocolInfo *info,
|
|
Packit |
712bc5 |
const char *mime_type);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
void
|
|
Packit |
712bc5 |
gupnp_protocol_info_set_dlna_profile (GUPnPProtocolInfo *info,
|
|
Packit |
712bc5 |
const char *profile);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
void
|
|
Packit |
712bc5 |
gupnp_protocol_info_set_play_speeds (GUPnPProtocolInfo *info,
|
|
Packit |
712bc5 |
const char **speeds);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
void
|
|
Packit |
712bc5 |
gupnp_protocol_info_set_dlna_conversion (GUPnPProtocolInfo *info,
|
|
Packit |
712bc5 |
GUPnPDLNAConversion conversion);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
void
|
|
Packit |
712bc5 |
gupnp_protocol_info_set_dlna_operation (GUPnPProtocolInfo *info,
|
|
Packit |
712bc5 |
GUPnPDLNAOperation operation);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
void
|
|
Packit |
712bc5 |
gupnp_protocol_info_set_dlna_flags (GUPnPProtocolInfo *info,
|
|
Packit |
712bc5 |
GUPnPDLNAFlags flags);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
const char *
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_protocol (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
const char *
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_network (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
const char *
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_mime_type (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
const char *
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_dlna_profile (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
const char **
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_play_speeds (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
GUPnPDLNAConversion
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_dlna_conversion (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
GUPnPDLNAOperation
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_dlna_operation (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
GUPnPDLNAFlags
|
|
Packit |
712bc5 |
gupnp_protocol_info_get_dlna_flags (GUPnPProtocolInfo *info);
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
G_END_DECLS
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
#endif /* __GUPNP_PROTOCOL_INFO_H__ */
|