Mercurial > audlegacy-plugins
comparison src/Input/cdaudio/http.h @ 0:13389e613d67 trunk
[svn] - initial import of audacious-plugins tree (lots to do)
| author | nenolod |
|---|---|
| date | Mon, 18 Sep 2006 01:11:49 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:13389e613d67 |
|---|---|
| 1 /* | |
| 2 * Copyright 1999 Håvard Kvålen <havardk@sol.no> | |
| 3 * | |
| 4 * This program is free software; you can redistribute it and/or modify | |
| 5 * it under the terms of the GNU General Public License as published by | |
| 6 * the Free Software Foundation; either version 2 of the License, or | |
| 7 * (at your option) any later version. | |
| 8 * | |
| 9 * This program is distributed in the hope that it will be useful, | |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12 * GNU General Public License for more details. | |
| 13 * | |
| 14 * You should have received a copy of the GNU General Public License | |
| 15 * along with this program; if not, write to the Free Software | |
| 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| 17 */ | |
| 18 | |
| 19 #ifndef XMMS_HTTP_H | |
| 20 #define XMMS_HTTP_H | |
| 21 | |
| 22 #include "config.h" | |
| 23 #include <glib.h> | |
| 24 | |
| 25 #ifdef HAVE_UNISTD_H | |
| 26 #include <unistd.h> | |
| 27 #endif | |
| 28 | |
| 29 #include <sys/socket.h> | |
| 30 #include <netinet/in.h> | |
| 31 #include <string.h> | |
| 32 #include <netdb.h> | |
| 33 #include <stdlib.h> | |
| 34 | |
| 35 | |
| 36 gint http_open_connection(const gchar * server, gint port); | |
| 37 void http_close_connection(gint sock); | |
| 38 gint http_read_line(gint sock, gchar * buf, gint size); | |
| 39 gint http_read_first_line(gint sock, gchar * buf, gint size); | |
| 40 gchar *http_get(gchar * url); | |
| 41 | |
| 42 #endif |
