Odamex
Setting the Standard in Multiplayer Doom
Wii/i_wii.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*- 
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: i_wii.h 1928 2010-09-17 04:39:55Z hypereye $
00005 //
00006 // Copyright (C) 2006-2010 by The Odamex Team.
00007 //
00008 // This program is free software; you can redistribute it and/or
00009 // modify it under the terms of the GNU General Public License
00010 // as published by the Free Software Foundation; either version 2
00011 // of the License, or (at your option) any later version.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 //
00018 //
00019 // DESCRIPTION:
00020 //      Wii Support
00021 //
00022 //-----------------------------------------------------------------------------
00023 
00024 #ifndef _I_WII_H
00025 #define _I_WII_H
00026 
00027 #include <network.h>
00028 
00029 #define socket net_socket
00030 #define bind net_bind
00031 #define close net_close
00032 #define gethostname wii_gethostname
00033 #define gethostbyname net_gethostbyname
00034 #define getsockname wii_getsockname
00035 #define recvfrom net_recvfrom
00036 #define sendto net_sendto
00037 #define select net_select
00038 #define ioctl net_ioctl
00039 
00040 #define scandir wii_scandir
00041 #define alphasort wii_alphasort
00042 
00043 int wii_getsockname(int socket, struct sockaddr *address, socklen_t *address_len);
00044 int wii_gethostname(char *name, size_t namelen);
00045 
00046 int wii_scandir(const char *dir, struct  dirent ***namelist,
00047                                                         int (*select)(const struct dirent *),
00048                                                         int (*compar)(const struct dirent **, const struct dirent **));
00049 int wii_alphasort(const struct dirent **a, const struct dirent **b);
00050 
00051 
00052 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends