mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
50 lines
1.7 KiB
C
50 lines
1.7 KiB
C
/* -*-mode: C; fill-column: 78; c-basic-offset: 4; compile-command: "make -k";-*- */
|
|
/*
|
|
* Copyright 1997-2000 by Eric House (fixin@peak.org). All rights reserved.
|
|
*
|
|
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
#ifndef _LINUXMAIN_H_
|
|
#define _LINUXMAIN_H_
|
|
|
|
#include "main.h"
|
|
#include "dictnry.h"
|
|
#include "mempool.h"
|
|
#include "comms.h"
|
|
#include "memstream.h"
|
|
/* #include "compipe.h" */
|
|
|
|
extern int errno;
|
|
|
|
typedef struct LinuxBMStruct {
|
|
XP_U8 nCols;
|
|
XP_U8 nRows;
|
|
XP_U8 nBytes;
|
|
} LinuxBMStruct;
|
|
|
|
DictionaryCtxt* linux_dictionary_make( MPFORMAL char* dictFileName );
|
|
|
|
int initListenerSocket( int port );
|
|
XP_S16 linux_udp_send( XP_U8* buf, XP_U16 buflen, CommsAddrRec* addrRec,
|
|
void* closure );
|
|
XWStreamCtxt* stream_from_msgbuf( CommonGlobals* globals, char* bufPtr,
|
|
XP_U16 nBytes );
|
|
XP_UCHAR* linux_getErrString( UtilErrID id );
|
|
XP_UCHAR* strFromStream( XWStreamCtxt* stream );
|
|
|
|
void catGameHistory( CommonGlobals* cGlobals );
|
|
void catOnClose( XWStreamCtxt* stream, void* closure );
|
|
|
|
#endif
|