00001 /* Streaming over http tools. 00002 * (c) Copyright 2001 Eugen Melinte <ame01@gmx.net> 00003 * 00004 * This source code is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Public License as published 00006 * by the Free Software Foundation; either version 2 of the License, 00007 * or (at your option) any later version. 00008 * 00009 * This source code is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 * Please refer to the GNU Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Public License along with 00015 * this source code; if not, write to: 00016 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef HTTPSTREAM_H 00020 #define HTTPSTREAM_H 00021 00022 00023 #include <stdio.h> 00024 00025 #include <outchannels.h> //codec 00026 00027 typedef enum { 00028 HS_MP3, 00029 HS_OGG, 00030 HS_NONE, //cannot detect 00031 } hstream; 00032 00036 FILE *hopen( const char *url, const char *mode ); 00037 00039 hstream stream_detect( const char *url ); 00040 00041 00042 #endif //HTTPSTREAM_H