VLC  3.0.15
live.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * live.h: HTTP read-only live stream declarations
3  *****************************************************************************
4  * Copyright (C) 2015 RĂ©mi Denis-Courmont
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19  *****************************************************************************/
20 
21 /**
22  * \defgroup http_live Live streams
23  * Trivial HTTP-based live streams
24  * \ingroup http_res
25  * @{
26  */
27 
28 struct vlc_http_resource;
29 struct block_t;
30 
32  const char *uri, const char *ua,
33  const char *ref);
35 
36 #define vlc_http_live_get_status vlc_http_res_get_status
37 #define vlc_http_live_get_redirect vlc_http_res_get_redirect
38 #define vlc_http_live_get_type vlc_http_res_get_type
39 #define vlc_http_live_destroye vlc_http_res_destroy
40 
41 /** @} */
hpack_decode_init
struct hpack_decoder * hpack_decode_init(size_t header_table_size)
Definition: hpack.c:71
vlc_http_live_callbacks
static const struct vlc_http_resource_cbs vlc_http_live_callbacks
Definition: live.c:51
vlc_http_res_init
int vlc_http_res_init(struct vlc_http_resource *restrict res, const struct vlc_http_resource_cbs *cbs, struct vlc_http_mgr *mgr, const char *uri, const char *ua, const char *ref)
Definition: resource.c:179
count
size_t count
Definition: core.c:461
hpack_decoder::size
size_t size
Definition: hpack.c:67
strcasecmp
int strcasecmp(const char *, const char *)
live.h
hpack_decoder
Definition: hpack.c:63
vlc_http_live_read
block_t * vlc_http_live_read(struct vlc_http_resource *res)
Definition: live.c:74
vlc_common.h
vlc_http_msg_destroy
void vlc_http_msg_destroy(struct vlc_http_msg *m)
Destroys an HTTP message.
Definition: message.c:191
vlc_http_resource::response
struct vlc_http_msg * response
Definition: resource.h:45
vlc_http_mgr
Definition: connmgr.c:95
hpack_encode_int
static size_t hpack_encode_int(uint8_t *restrict buf, size_t size, uintmax_t value, unsigned n)
Definition: hpackenc.c:44
resource.h
hpack_encode_hdr_neverindex
size_t hpack_encode_hdr_neverindex(uint8_t *restrict buf, size_t size, const char *name, const char *value)
Definition: hpackenc.c:119
vlc_http_msg_add_header
int vlc_http_msg_add_header(struct vlc_http_msg *m, const char *name, const char *fmt,...)
Definition: message.c:142
message.h
hpack.h
hpack_decode_destroy
void hpack_decode_destroy(struct hpack_decoder *dec)
Definition: hpack.c:84
vlc_http_resource
Definition: resource.h:42
vlc_http_error
void *const vlc_http_error
Error pointer value.
Definition: message.c:55
hpack_decode
int hpack_decode(struct hpack_decoder *dec, const uint8_t *data, size_t length, char *headers[][2], unsigned max)
Definition: hpack.c:574
vlc_http_live_req
static int vlc_http_live_req(const struct vlc_http_resource *res, struct vlc_http_msg *req, void *opaque)
Definition: live.c:33
name
const char name[16]
Definition: httpd.c:1249
vlc_http_live_create
struct vlc_http_resource * vlc_http_live_create(struct vlc_http_mgr *mgr, const char *uri, const char *ua, const char *ref)
Definition: live.c:57
hpack_encode_str_raw
static size_t hpack_encode_str_raw(uint8_t *restrict buf, size_t size, const char *str)
Definition: hpackenc.c:75
unlikely
#define unlikely(p)
Definition: vlc_common.h:114
vlc_http_live_resp
static int vlc_http_live_resp(const struct vlc_http_resource *res, const struct vlc_http_msg *resp, void *opaque)
Definition: live.c:42
vlc_http_res_read
struct block_t * vlc_http_res_read(struct vlc_http_resource *res)
Reads data.
Definition: resource.c:321
main
int main(void)
Definition: fourcc_gen.c:134
vlc_http_resource_cbs
Definition: resource.h:34
vlc_http_msg
Definition: message.c:40
hpack_encode_str_raw_lower
static size_t hpack_encode_str_raw_lower(uint8_t *restrict buf, size_t size, const char *str)
Definition: hpackenc.c:95
block_t
Definition: vlc_block.h:111
hpack_encode
size_t hpack_encode(uint8_t *restrict buf, size_t size, const char *const headers[][2], unsigned count)
Definition: hpackenc.c:153