![]() |
![]() |
![]() |
librygel-server Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define RYGEL_TYPE_HTTP_SEEK void rygel_http_seek_add_response_headers (RygelHTTPSeek *self
); RygelHTTPSeekType rygel_http_seek_get_seek_type (RygelHTTPSeek *self
); void rygel_http_seek_set_seek_type (RygelHTTPSeek *self
,RygelHTTPSeekType value
); SoupMessage * rygel_http_seek_get_msg (RygelHTTPSeek *self
); gint64 rygel_http_seek_get_start (RygelHTTPSeek *self
); gint64 rygel_http_seek_get_stop (RygelHTTPSeek *self
); gint64 rygel_http_seek_get_step (RygelHTTPSeek *self
); gint64 rygel_http_seek_get_length (RygelHTTPSeek *self
); gint64 rygel_http_seek_get_total_length (RygelHTTPSeek *self
); struct RygelHTTPSeek; struct RygelHTTPSeekClass; enum RygelHTTPSeekType; enum RygelHTTPSeekError;
It can be one of:
- The classic Range request (seek_type == HTTPSeekType.BYTE), with start and stop in bytes.
- The DLNA-Specific "TimeSeekRange.dlna.org" request (seek_type == HTTPSeekType.TIME) with start and stop in microseconds.
#define RYGEL_TYPE_HTTP_SEEK (rygel_http_seek_get_type ())
The type for RygelHTTPSeek.
void rygel_http_seek_add_response_headers
(RygelHTTPSeek *self
);
|
the RygelHTTPSeek instance |
RygelHTTPSeekType rygel_http_seek_get_seek_type (RygelHTTPSeek *self
);
Get and return the current value of the "seek-type" property.
|
the RygelHTTPSeek instance to query |
Returns : |
the value of the "seek-type" property |
void rygel_http_seek_set_seek_type (RygelHTTPSeek *self
,RygelHTTPSeekType value
);
Set the value of the "seek-type" property to value
.
|
the RygelHTTPSeek instance to modify |
|
the new value of the "seek-type" property |
SoupMessage * rygel_http_seek_get_msg (RygelHTTPSeek *self
);
Get and return the current value of the "msg" property.
|
the RygelHTTPSeek instance to query |
Returns : |
the value of the "msg" property |
gint64 rygel_http_seek_get_start (RygelHTTPSeek *self
);
Get and return the current value of the "start" property.
|
the RygelHTTPSeek instance to query |
Returns : |
the value of the "start" property |
gint64 rygel_http_seek_get_stop (RygelHTTPSeek *self
);
Get and return the current value of the "stop" property.
|
the RygelHTTPSeek instance to query |
Returns : |
the value of the "stop" property |
gint64 rygel_http_seek_get_step (RygelHTTPSeek *self
);
Get and return the current value of the "step" property.
|
the RygelHTTPSeek instance to query |
Returns : |
the value of the "step" property |
gint64 rygel_http_seek_get_length (RygelHTTPSeek *self
);
Get and return the current value of the "length" property.
|
the RygelHTTPSeek instance to query |
Returns : |
the value of the "length" property |
gint64 rygel_http_seek_get_total_length (RygelHTTPSeek *self
);
Get and return the current value of the "total-length" property.
|
the RygelHTTPSeek instance to query |
Returns : |
the value of the "total-length" property |
struct RygelHTTPSeek { GObject parent_instance; RygelHTTPSeekPrivate * priv; };
HTTPSeek is an abstract representation of a ranged HTTP request.
It can be one of:
- The classic Range request (seek_type == HTTPSeekType.BYTE), with start and stop in bytes.
- The DLNA-Specific "TimeSeekRange.dlna.org" request (seek_type == HTTPSeekType.TIME) with start and stop in microseconds.
struct RygelHTTPSeekClass { GObjectClass parent_class; void (*add_response_headers) (RygelHTTPSeek* self); };
The class structure for RYGEL_TYPE_HTTP_SEEK
. All the fields in this structure are private and should never be accessed directly.
typedef enum { RYGEL_HTTP_SEEK_TYPE_BYTE, RYGEL_HTTP_SEEK_TYPE_TIME } RygelHTTPSeekType;