| GUPnP A/V Reference Manual | ||||
|---|---|---|---|---|
GUPnPProtocolInfo;
enum GUPnPDLNAConversion;
enum GUPnPDLNAFlags;
enum GUPnPDLNAOperation;
GUPnPProtocolInfo* gupnp_protocol_info_new_from_string (const char *protocol_info,
GError **error);
char* gupnp_protocol_info_to_string (GUPnPProtocolInfo *info);
gboolean gupnp_protocol_info_is_compatible (GUPnPProtocolInfo *info1,
GUPnPProtocolInfo *info2);
void gupnp_protocol_info_set_protocol (GUPnPProtocolInfo *info,
const char *protocol);
void gupnp_protocol_info_set_network (GUPnPProtocolInfo *info,
const char *network);
void gupnp_protocol_info_set_mime_type (GUPnPProtocolInfo *info,
const char *mime_type);
void gupnp_protocol_info_set_dlna_profile
(GUPnPProtocolInfo *info,
const char *profile);
void gupnp_protocol_info_set_play_speeds (GUPnPProtocolInfo *info,
const char **speeds);
void gupnp_protocol_info_set_dlna_conversion
(GUPnPProtocolInfo *info,
GUPnPDLNAConversion conversion);
void gupnp_protocol_info_set_dlna_operation
(GUPnPProtocolInfo *info,
GUPnPDLNAOperation operation);
void gupnp_protocol_info_set_dlna_flags (GUPnPProtocolInfo *info,
GUPnPDLNAFlags flags);
const char* gupnp_protocol_info_get_protocol (GUPnPProtocolInfo *info);
const char* gupnp_protocol_info_get_network (GUPnPProtocolInfo *info);
const char* gupnp_protocol_info_get_mime_type (GUPnPProtocolInfo *info);
const char* gupnp_protocol_info_get_dlna_profile
(GUPnPProtocolInfo *info);
const char** gupnp_protocol_info_get_play_speeds (GUPnPProtocolInfo *info);
GUPnPDLNAConversion gupnp_protocol_info_get_dlna_conversion
(GUPnPProtocolInfo *info);
GUPnPDLNAOperation gupnp_protocol_info_get_dlna_operation
(GUPnPProtocolInfo *info);
GUPnPDLNAFlags gupnp_protocol_info_get_dlna_flags (GUPnPProtocolInfo *info);
"dlna-conversion" GUPnPDLNAConversion : Read / Write "dlna-flags" GUPnPDLNAFlags : Read / Write "dlna-operation" GUPnPDLNAOperation : Read / Write "dlna-profile" gchar* : Read / Write "mime-type" gchar* : Read / Write "network" gchar* : Read / Write "play-speeds" GStrv* : Read / Write "protocol" gchar* : Read / Write
GUPnPProtocolInfo provides a convenient API to deal with ProtocolInfo strings used in UPnP AV specifications.
typedef enum {
GUPNP_DLNA_CONVERSION_NONE = 0,
GUPNP_DLNA_CONVERSION_TRANSCODED = 1
} GUPnPDLNAConversion;
The DLNA conversion flags for a resource.
typedef enum {
GUPNP_DLNA_FLAGS_NONE = 0,
GUPNP_DLNA_FLAGS_SENDER_PACED = (1 << 31),
GUPNP_DLNA_FLAGS_TIME_BASED_SEEK = (1 << 30),
GUPNP_DLNA_FLAGS_BYTE_BASED_SEEK = (1 << 29),
GUPNP_DLNA_FLAGS_PLAY_CONTAINER = (1 << 28),
GUPNP_DLNA_FLAGS_S0_INCREASE = (1 << 27),
GUPNP_DLNA_FLAGS_SN_INCREASE = (1 << 26),
GUPNP_DLNA_FLAGS_RTSP_PAUSE = (1 << 25),
GUPNP_DLNA_FLAGS_STREAMING_TRANSFER_MODE = (1 << 24),
GUPNP_DLNA_FLAGS_INTERACTIVE_TRANSFER_MODE = (1 << 23),
GUPNP_DLNA_FLAGS_BACKGROUND_TRANSFER_MODE = (1 << 22),
GUPNP_DLNA_FLAGS_CONNECTION_STALL = (1 << 21),
GUPNP_DLNA_FLAGS_DLNA_V15 = (1 << 20)
} GUPnPDLNAFlags;
The miscellaneous operations supported by a resource. For details on these flags please refer to section 7.3.37.2 of DLNA Networked Device Interoperability Guidelines Volume 1, October 2006.
typedef enum {
GUPNP_DLNA_OPERATION_NONE = 0x00,
GUPNP_DLNA_OPERATION_RANGE = 0x01,
GUPNP_DLNA_OPERATION_TIMESEEK = 0x10
} GUPnPDLNAOperation;
The seek operations supported by a resource.
GUPnPProtocolInfo* gupnp_protocol_info_new_from_string (const char *protocol_info, GError **error);
Parses the protocol_info string and creates a new GUPnPProtocolInfo object
as a result.
protocol_info : |
The protocol info string |
error : |
The location where to store any error, or NULL |
| Returns : | A new GUPnPProtocolInfo object. Unref after usage. |
char* gupnp_protocol_info_to_string (GUPnPProtocolInfo *info);
Provides the string representation of info.
info : |
The GUPnPProtocolInfo |
| Returns : | String representation of info. g_free after usage.
|
gboolean gupnp_protocol_info_is_compatible (GUPnPProtocolInfo *info1, GUPnPProtocolInfo *info2);
Checks if the given protocolInfo string is compatible with info.
info1 : |
The first GUPnPProtocolInfo |
info2 : |
The second GUPnPProtocolInfo |
| Returns : | TRUE if protocol_info is compatible with info, otherwise
FALSE.
|
void gupnp_protocol_info_set_protocol (GUPnPProtocolInfo *info, const char *protocol);
Set the protocol of this info.
info : |
A GUPnPProtocolInfo |
protocol : |
The protocol string |
| Returns : | None. |
void gupnp_protocol_info_set_network (GUPnPProtocolInfo *info, const char *network);
Set the network this info is associated with.
info : |
A GUPnPProtocolInfo |
network : |
The network string |
| Returns : | None. |
void gupnp_protocol_info_set_mime_type (GUPnPProtocolInfo *info, const char *mime_type);
Set the MIME-type of this info.
info : |
A GUPnPProtocolInfo |
mime_type : |
The MIME-type string |
| Returns : | None. |
void gupnp_protocol_info_set_dlna_profile
(GUPnPProtocolInfo *info,
const char *profile);
Set the DLNA profile of this info.
info : |
A GUPnPProtocolInfo |
profile : |
The DLNA profile string |
| Returns : | None. |
void gupnp_protocol_info_set_play_speeds (GUPnPProtocolInfo *info, const char **speeds);
Set the allowed play speeds on this info in the form of array of strings.
info : |
A GUPnPProtocolInfo |
speeds : |
The allowed play speeds |
| Returns : | None. |
void gupnp_protocol_info_set_dlna_conversion
(GUPnPProtocolInfo *info,
GUPnPDLNAConversion conversion);
Set the DLNA conversion flags.
info : |
A GUPnPProtocolInfo |
conversion : |
The bitwise OR of one or more DLNA conversion flags |
| Returns : | None. |
void gupnp_protocol_info_set_dlna_operation
(GUPnPProtocolInfo *info,
GUPnPDLNAOperation operation);
Set the DLNA operation flags.
info : |
A GUPnPProtocolInfo |
operation : |
The bitwise OR of one or more DLNA operation flags |
| Returns : | None. |
void gupnp_protocol_info_set_dlna_flags (GUPnPProtocolInfo *info, GUPnPDLNAFlags flags);
Set the gereric DLNA flags.
info : |
A GUPnPProtocolInfo |
flags : |
The bitwise OR of one or more generic DLNA flags |
| Returns : | None. |
const char* gupnp_protocol_info_get_protocol (GUPnPProtocolInfo *info);
Get the protocol of this info.
info : |
A GUPnPProtocolInfo |
| Returns : | The protocol of this info or NULL. This string should not
be freed.
|
const char* gupnp_protocol_info_get_network (GUPnPProtocolInfo *info);
Get the network this info is associated with.
info : |
A GUPnPProtocolInfo |
| Returns : | The network string or NULL. This string should not be freed.
|
const char* gupnp_protocol_info_get_mime_type (GUPnPProtocolInfo *info);
Get the MIME-type of this info.
info : |
A GUPnPProtocolInfo |
| Returns : | The MIME-type of this info or NULL. This string should not
be freed.
|
const char* gupnp_protocol_info_get_dlna_profile
(GUPnPProtocolInfo *info);
Get the DLNA profile of this info.
info : |
A GUPnPProtocolInfo |
| Returns : | The DLNA profile of this info or NULL. This string should
not be freed.
|
const char** gupnp_protocol_info_get_play_speeds (GUPnPProtocolInfo *info);
Get the allowed play speeds on this info in the form of array of strings.
info : |
A GUPnPProtocolInfo |
| Returns : | The allowed play speeds as array of strings or NULL. This
return array and it's content must not be modified or freed.
|
GUPnPDLNAConversion gupnp_protocol_info_get_dlna_conversion (GUPnPProtocolInfo *info);
Get the DLNA conversion flags.
info : |
A GUPnPProtocolInfo |
| Returns : | The DLNA conversion flags. |
GUPnPDLNAOperation gupnp_protocol_info_get_dlna_operation (GUPnPProtocolInfo *info);
Get the DLNA operation flags.
info : |
A GUPnPProtocolInfo |
| Returns : | The DLNA operation flags. |
GUPnPDLNAFlags gupnp_protocol_info_get_dlna_flags (GUPnPProtocolInfo *info);
Get the gereric DLNA flags.
info : |
A GUPnPProtocolInfo |
| Returns : | The generic DLNA flags. |
"dlna-conversion" property"dlna-conversion" GUPnPDLNAConversion : Read / Write
The DLNA conversion flags.
"dlna-operation" property"dlna-operation" GUPnPDLNAOperation : Read / Write
The DLNA operation flags.
"dlna-profile" property"dlna-profile" gchar* : Read / Write
The DLNA profile of this info.
Default value: NULL
"mime-type" property"mime-type" gchar* : Read / Write
The MIME-type of this info.
Default value: NULL
"network" property"network" gchar* : Read / Write
The network this info is associated with.
Default value: NULL
"play-speeds" property"play-speeds" GStrv* : Read / Write
The allowed play speeds on this info in the form of array of strings.