VLC  4.0.0-dev
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_destroy vlc_http_res_destroy
40 
41 /** @} */
hpack_decode_init
struct hpack_decoder * hpack_decode_init(size_t header_table_size)
Definition: hpack.c:72
vlc_http_live_callbacks
static const struct vlc_http_resource_cbs vlc_http_live_callbacks
Definition: live.c:52
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:168
count
size_t count
Definition: core.c:401
hpack_decoder::size
size_t size
Definition: hpack.c:68
strcasecmp
int strcasecmp(const char *, const char *)
live.h
hpack_decoder
Definition: hpack.c:64
vlc_http_live_read
block_t * vlc_http_live_read(struct vlc_http_resource *res)
Definition: live.c:75
unlikely
#define unlikely(p)
Predicted false condition.
Definition: vlc_common.h:227
vlc_common.h
main
int main(void)
Definition: test.c:310
vlc_http_msg_destroy
void vlc_http_msg_destroy(struct vlc_http_msg *m)
Destroys an HTTP message.
Definition: message.c:193
vlc_http_resource::response
struct vlc_http_msg * response
Definition: resource.h:46
vlc_http_mgr
Definition: connmgr.c:99
hpack_encode_int
static size_t hpack_encode_int(uint8_t *restrict buf, size_t size, uintmax_t value, unsigned n)
Definition: hpackenc.c:45
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:120
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:144
message.h
hpack.h
hpack_decode_destroy
void hpack_decode_destroy(struct hpack_decoder *dec)
Definition: hpack.c:85
vlc_http_resource
Definition: resource.h:43
vlc_http_error
void *const vlc_http_error
Error pointer value.
Definition: message.c:57
hpack_decode
int hpack_decode(struct hpack_decoder *dec, const uint8_t *data, size_t length, char *headers[][2], unsigned max)
Definition: hpack.c:575
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:34
name
const char name[16]
Definition: httpd.c:1268
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:58
hpack_encode_str_raw
static size_t hpack_encode_str_raw(uint8_t *restrict buf, size_t size, const char *str)
Definition: hpackenc.c:76
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:43
vlc_http_res_read
struct block_t * vlc_http_res_read(struct vlc_http_resource *res)
Reads data.
Definition: resource.c:310
vlc_http_resource_cbs
Definition: resource.h:35
vlc_http_msg
Definition: message.c:42
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:96
block_t
Definition: vlc_block.h:117
hpack_encode
size_t hpack_encode(uint8_t *restrict buf, size_t size, const char *const headers[][2], unsigned count)
Definition: hpackenc.c:154