/usr/include/gupnp-av-1.0/libgupnp-av/gupnp-didl-lite-resource.h is in libgupnp-av-1.0-dev 0.10.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | /*
* Copyright (C) 2009 Nokia Corporation.
* Copyright (C) 2007, 2008 OpenedHand Ltd.
*
* Authors: Zeeshan Ali (Khattak) <zeeshan.ali@nokia.com>
* <zeeshanak@gnome.org>
* Jorn Baayen <jorn@openedhand.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GUPNP_DIDL_LITE_RESOURCE_H__
#define __GUPNP_DIDL_LITE_RESOURCE_H__
#include <stdarg.h>
#include <glib-object.h>
#include <glib.h>
#include <libxml/tree.h>
#include <libgupnp/gupnp.h>
#include "gupnp-dlna.h"
#include "gupnp-protocol-info.h"
G_BEGIN_DECLS
GType
gupnp_didl_lite_resource_get_type (void) G_GNUC_CONST;
#define GUPNP_TYPE_DIDL_LITE_RESOURCE \
(gupnp_didl_lite_resource_get_type ())
#define GUPNP_DIDL_LITE_RESOURCE(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
GUPNP_TYPE_DIDL_LITE_RESOURCE, \
GUPnPDIDLLiteResource))
#define GUPNP_DIDL_LITE_RESOURCE_CLASS(obj) \
(G_TYPE_CHECK_CLASS_CAST ((obj), \
GUPNP_TYPE_DIDL_LITE_RESOURCE, \
GUPnPDIDLLiteResourceClass))
#define GUPNP_IS_DIDL_LITE_RESOURCE(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
GUPNP_TYPE_DIDL_LITE_RESOURCE))
#define GUPNP_IS_DIDL_LITE_RESOURCE_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE ((obj), \
GUPNP_TYPE_DIDL_LITE_RESOURCE))
#define GUPNP_DIDL_LITE_RESOURCE_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
GUPNP_TYPE_DIDL_LITE_RESOURCE, \
GUPnPDIDLLiteResourceClass))
typedef struct _GUPnPDIDLLiteResourcePrivate GUPnPDIDLLiteResourcePrivate;
typedef struct {
GObject parent;
GUPnPDIDLLiteResourcePrivate *priv;
} GUPnPDIDLLiteResource;
typedef struct {
GObjectClass parent_class;
/* future padding */
void (* _gupnp_reserved1) (void);
void (* _gupnp_reserved2) (void);
void (* _gupnp_reserved3) (void);
void (* _gupnp_reserved4) (void);
} GUPnPDIDLLiteResourceClass;
void
gupnp_didl_lite_resource_set_uri (GUPnPDIDLLiteResource *resource,
const char *uri);
void
gupnp_didl_lite_resource_set_import_uri (GUPnPDIDLLiteResource *resource,
const char *import_uri);
void
gupnp_didl_lite_resource_set_protocol_info
(GUPnPDIDLLiteResource *resource,
GUPnPProtocolInfo *info);
void
gupnp_didl_lite_resource_set_size (GUPnPDIDLLiteResource *resource,
long size);
void
gupnp_didl_lite_resource_set_size64 (GUPnPDIDLLiteResource *resource,
gint64 size);
void
gupnp_didl_lite_resource_set_duration (GUPnPDIDLLiteResource *resource,
long duration);
void
gupnp_didl_lite_resource_set_bitrate (GUPnPDIDLLiteResource *resource,
int bitrate);
void
gupnp_didl_lite_resource_set_sample_freq
(GUPnPDIDLLiteResource *resource,
int sample_freq);
void
gupnp_didl_lite_resource_set_bits_per_sample
(GUPnPDIDLLiteResource *resource,
int sample_size);
void
gupnp_didl_lite_resource_set_protection (GUPnPDIDLLiteResource *resource,
const char *protection);
void
gupnp_didl_lite_resource_set_audio_channels
(GUPnPDIDLLiteResource *resource,
int n_channels);
void
gupnp_didl_lite_resource_set_width (GUPnPDIDLLiteResource *resource,
int width);
void
gupnp_didl_lite_resource_set_height (GUPnPDIDLLiteResource *resource,
int height);
void
gupnp_didl_lite_resource_set_color_depth
(GUPnPDIDLLiteResource *resource,
int color_depth);
xmlNode *
gupnp_didl_lite_resource_get_xml_node (GUPnPDIDLLiteResource *resource);
const char *
gupnp_didl_lite_resource_get_uri (GUPnPDIDLLiteResource *resource);
const char *
gupnp_didl_lite_resource_get_import_uri (GUPnPDIDLLiteResource *resource);
GUPnPProtocolInfo *
gupnp_didl_lite_resource_get_protocol_info
(GUPnPDIDLLiteResource *resource);
long
gupnp_didl_lite_resource_get_size (GUPnPDIDLLiteResource *resource);
gint64
gupnp_didl_lite_resource_get_size64 (GUPnPDIDLLiteResource *resource);
long
gupnp_didl_lite_resource_get_duration (GUPnPDIDLLiteResource *resource);
int
gupnp_didl_lite_resource_get_bitrate (GUPnPDIDLLiteResource *resource);
int
gupnp_didl_lite_resource_get_sample_freq
(GUPnPDIDLLiteResource *resource);
int
gupnp_didl_lite_resource_get_bits_per_sample
(GUPnPDIDLLiteResource *resource);
const char *
gupnp_didl_lite_resource_get_protection (GUPnPDIDLLiteResource *resource);
int
gupnp_didl_lite_resource_get_audio_channels
(GUPnPDIDLLiteResource *resource);
int
gupnp_didl_lite_resource_get_width (GUPnPDIDLLiteResource *resource);
int
gupnp_didl_lite_resource_get_height (GUPnPDIDLLiteResource *resource);
int
gupnp_didl_lite_resource_get_color_depth
(GUPnPDIDLLiteResource *resource);
G_END_DECLS
#endif /* __GUPNP_DIDL_LITE_RESOURCE_H__ */
|