Skip to content
slc.hh 1.77 KiB
Newer Older
Seblu's avatar
Seblu committed
/*
  This file is part of SLC.
Seblu's avatar
Seblu committed
  Copyright (C) 2008 Sebastien LUTTRINGER <contact@seblu.net>
Seblu's avatar
Seblu committed

  SLC is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
Seblu's avatar
Seblu committed
  the Free Software Foundation; version 2 of the License.
Seblu's avatar
Seblu committed

  SLC 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 SLC; if not, write to the Free Software
Seblu's avatar
Seblu committed
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Seblu's avatar
Seblu committed
*/

Seblu's avatar
Seblu committed
#ifndef SLC_HH
# define SLC_HH

Seblu's avatar
Seblu committed
# include "sll/slm.hh"
# include "sll/error.hh"
Seblu's avatar
Seblu committed

// -----------------------------------------------------------------------------
// Gonstant
// -----------------------------------------------------------------------------

static const int MAX_CONF_LINE_SIZE = 2048;
static const string RCV_DATA = "<< ";
static const string SND_DATA = ">> ";
Seblu's avatar
Seblu committed
static const string INF_DATA = "-- ";
static const string WAR_DATA = "!! ";

Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
// -----------------------------------------------------------------------------
Seblu's avatar
Seblu committed
// Global var
Seblu's avatar
Seblu committed
// -----------------------------------------------------------------------------

class Options;
class Screen;
class History;
class Connection;
Seblu's avatar
Seblu committed
class Engine;

extern Options O;
extern Screen S;
extern History H;
extern Connection C;
Seblu's avatar
Seblu committed
extern Engine E;
Seblu's avatar
Seblu committed
extern pthread_t g_thread_reader;

// -----------------------------------------------------------------------------
// Global func
// -----------------------------------------------------------------------------

int main(int, char **);
void *thread_reader(void *);
Seblu's avatar
Seblu committed
void login();
Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
#endif