diff options
author | Max Kellermann <max@duempel.org> | 2013-01-27 22:58:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 15:08:09 +0100 |
commit | 5e8f51a9632e63656b7e68e90412374b8508fa30 (patch) | |
tree | 5d07af67dfa453613e1e78f15d54516965ac0f21 /src/glib_socket.h | |
parent | be3d2188d6a8fc03379d55cec0a9b02980c3df9d (diff) | |
download | mpd-5e8f51a9632e63656b7e68e90412374b8508fa30.tar.gz mpd-5e8f51a9632e63656b7e68e90412374b8508fa30.tar.xz mpd-5e8f51a9632e63656b7e68e90412374b8508fa30.zip |
output/httpd: use the BufferedSocket class for HttpdClient
Diffstat (limited to '')
-rw-r--r-- | src/glib_socket.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/glib_socket.h b/src/glib_socket.h deleted file mode 100644 index 46fab37dd..000000000 --- a/src/glib_socket.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2003-2011 The Music Player Daemon Project - * http://www.musicpd.org - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifndef MPD_GLIB_SOCKET_H -#define MPD_GLIB_SOCKET_H - -#include <glib.h> - -/** - * Portable wrapper for g_io_channel_unix_new() or - * g_io_channel_win32_new_socket(). - */ -G_GNUC_MALLOC -static inline GIOChannel * -g_io_channel_new_socket(int fd) -{ -#ifdef G_OS_WIN32 - return g_io_channel_win32_new_socket(fd); -#else - return g_io_channel_unix_new(fd); -#endif -} - -#endif |