xine-lib  1.2.9
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 
34 int mmsh_read (mmsh_t *this, char *data, int len);
35 uint32_t mmsh_get_length (mmsh_t *this);
36 void mmsh_close (mmsh_t *this);
37 
38 size_t mmsh_peek_header (mmsh_t *this, char *data, size_t maxsize);
39 
40 off_t mmsh_get_current_pos (mmsh_t *this);
41 
42 void mmsh_set_start_time (mmsh_t *this, int time_offset);
43 
44 #endif
char * url
Definition: mmsh.c:158
uint32_t mmsh_get_length(mmsh_t *this)
Definition: mmsh.c:884
off_t mmsh_get_current_pos(mmsh_t *this)
Definition: mmsh.c:888
size_t mmsh_peek_header(mmsh_t *this, char *data, size_t maxsize)
Definition: mmsh.c:780
int mmsh_read(mmsh_t *this, char *data, int len)
Definition: mmsh.c:791
int port
Definition: mmsh.c:161
mmsh_t * mmsh_connect(xine_stream_t *stream, const char *url_, int bandwidth)
Definition: mmsh.c:634
char * host
Definition: mmsh.c:160
Definition: xine_internal.h:210
void mmsh_set_start_time(mmsh_t *this, int time_offset)
Definition: mmsh.c:892
int s
Definition: mmsh.c:155
xine_stream_t * stream
Definition: mmsh.c:153
Definition: mmsh.c:151
void mmsh_close(mmsh_t *this)
Definition: mmsh.c:863
char * mmsh_connect_common(int *s, int *port, char *url, char **host, char **path, char **file)