diff options
author | theuni <theuni-nospam-@xbmc.org> | 2011-01-24 16:05:21 -0500 |
---|---|---|
committer | theuni <theuni-nospam-@xbmc.org> | 2011-01-24 16:05:21 -0500 |
commit | c51b1189e3d5353e842991f5859ddcea0f73e426 (patch) | |
tree | ef2cb8a6184699aa614f3655dca4ce661cdc108e /lib/libRTV/netclient.h | |
parent | be61ebdc9e897fe40c6f371111724de79ddee8d5 (diff) |
Merged cptspiff's code-reshuffle branch.
Squashed commit due to build breakage during code-reshuffle history.
Conflicts:
xbmc/Util.cpp
xbmc/cdrip/CDDARipper.cpp
xbmc/filesystem/Directory.cpp
xbmc/filesystem/File.cpp
Diffstat (limited to 'lib/libRTV/netclient.h')
-rw-r--r-- | lib/libRTV/netclient.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/libRTV/netclient.h b/lib/libRTV/netclient.h new file mode 100644 index 0000000000..dbba53f8ec --- /dev/null +++ b/lib/libRTV/netclient.h @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2002 John Todd Larason <jtl@molehill.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. + */ + +#ifndef NETCLIENT_H +#define NETCLIENT_H + +#include <stdlib.h> + +struct nc; + +extern void nc_error(char * where); +extern struct nc * nc_open(char * address, short port); +extern int nc_close(struct nc * nc); +extern int nc_read(struct nc * nc, unsigned char * buf, size_t len); +extern int nc_read_line(struct nc * nc, unsigned char * buf, size_t maxlen); +extern int nc_write(struct nc * nc, unsigned char * buf, size_t len); + +#endif |