xine-lib 1.2.13-20230125hg15249
mmsh.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2009 the xine project
3 *
4 * This file is part of xine, a free video player.
5 *
6 * xine is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * xine 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 General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 *
20 * libmmsh public header
21 */
22
23#ifndef HAVE_MMSH_H
24#define HAVE_MMSH_H
25
26#include <inttypes.h>
27#include <xine/xine_internal.h>
28
29typedef struct mmsh_s mmsh_t;
30
31char* mmsh_connect_common(int *s ,int *port, char *url, char **host, char **path, char **file);
32mmsh_t* mmsh_connect (xine_stream_t *stream, const char *url_, int bandwidth);
33
34int mmsh_read (mmsh_t *this, char *data, int len);
35uint32_t mmsh_get_length (mmsh_t *this);
36void mmsh_close (mmsh_t *this);
37
38size_t mmsh_peek_header (mmsh_t *this, char *data, size_t maxsize);
39
40off_t mmsh_get_current_pos (mmsh_t *this);
41
42void mmsh_set_start_time (mmsh_t *this, int time_offset);
43
44#endif
mmsh_t * mmsh_connect(xine_stream_t *stream, const char *url_, int bandwidth)
Definition mmsh.c:617
size_t mmsh_peek_header(mmsh_t *this, char *data, size_t maxsize)
Definition mmsh.c:760
void mmsh_close(mmsh_t *this)
Definition mmsh.c:843
void mmsh_set_start_time(mmsh_t *this, int time_offset)
Definition mmsh.c:867
uint32_t mmsh_get_length(mmsh_t *this)
Definition mmsh.c:859
char * mmsh_connect_common(int *s, int *port, char *url, char **host, char **path, char **file)
off_t mmsh_get_current_pos(mmsh_t *this)
Definition mmsh.c:863
int mmsh_read(mmsh_t *this, char *data, int len)
Definition mmsh.c:771
Definition mmsh.c:137
xine_stream_t * stream
Definition mmsh.c:139
xine_url_t url
Definition mmsh.c:144
int s
Definition mmsh.c:141
Definition xine_internal.h:123