mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
f6d7eed84d
This is meant to replace the relay eventually, but for now it's a new option, like BT or SMS, to be chosen. Protocol is handled in common/ code for the first time, meaning that linux and android interact without the need to keep two platforms in sync. Linux uses lib-mosquitto, and Android uses eclipse's Paho client (the generic java version, not the one that uses four-year-old Service patterns and so crashes for SDK >= 26.)
34 lines
1.4 KiB
C
34 lines
1.4 KiB
C
/* -*- compile-command: "make MEMDEBUG=TRUE -j3"; -*- */
|
|
/* Copyright 1997 - 2013 by Eric House (xwords@eehouse.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 _GTKMAIN_H_
|
|
#define _GTKMAIN_H_
|
|
|
|
#include "main.h"
|
|
#include "gtkboard.h"
|
|
|
|
int gtkmain( LaunchParams* params );
|
|
void windowDestroyed( GtkGameGlobals* globals );
|
|
void gtkOnGameSaved( void* closure, sqlite3_int64 rowid, XP_Bool firstTime );
|
|
void make_rematch( GtkAppGlobals* apg, const CommonGlobals* cGlobals );
|
|
void relayInviteReceivedGTK( void* closure, const NetLaunchInfo* invite );
|
|
void msgReceivedGTK( void* closure, const CommsAddrRec* from, XP_U32 gameID,
|
|
const XP_U8* buf, XP_U16 len );
|
|
void gameGoneGTK( void* closure, const CommsAddrRec* from, XP_U32 gameID );
|
|
#endif
|