xine-lib: xine-lib-1.2.13/src/input/mmsh.h Source File

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
29 typedef struct mmsh_s mmsh_t;
30
31 char* mmsh_connect_common(int *s ,int *port, char *url, char **host, char **path, char **file);
32 mmsh_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_connect
mmsh_t * mmsh_connect(xine_stream_t *stream, const char *url_, int bandwidth)
Definition mmsh.c:617
mmsh_peek_header
size_t mmsh_peek_header(mmsh_t *this, char *data, size_t maxsize)
Definition mmsh.c:760
mmsh_close
void mmsh_close(mmsh_t *this)
Definition mmsh.c:843
mmsh_set_start_time
void mmsh_set_start_time(mmsh_t *this, int time_offset)
Definition mmsh.c:867
mmsh_get_length
uint32_t mmsh_get_length(mmsh_t *this)
Definition mmsh.c:859
mmsh_connect_common
char * mmsh_connect_common(int *s, int *port, char *url, char **host, char **path, char **file)
mmsh_get_current_pos
off_t mmsh_get_current_pos(mmsh_t *this)
Definition mmsh.c:863
mmsh_read
int mmsh_read(mmsh_t *this, char *data, int len)
Definition mmsh.c:771
mmsh_s
Definition mmsh.c:137
mmsh_s::stream
xine_stream_t * stream
Definition mmsh.c:139
mmsh_s::url
xine_url_t url
Definition mmsh.c:144
mmsh_s::s
int s
Definition mmsh.c:141
xine_stream_s
Definition xine_internal.h:123
xine_internal.h