Mercurial > cabal
comparison sources/headers/engine.h @ 0:bafff9de2a76
Initial commit since summer'07
| author | Vlad Glagolev <enqlave@gmail.com> |
|---|---|
| date | Sun, 20 Jan 2008 19:25:25 +0300 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:bafff9de2a76 |
|---|---|
| 1 /** | |
| 2 * engine.h (2007-03-05) | |
| 3 * | |
| 4 * -- CABAL -- engine header | |
| 5 * | |
| 6 * Copyright (c) 2007 Vlad Glagolev <enqlave@gmail.com> | |
| 7 * All rights reserved. | |
| 8 * | |
| 9 * Permission to use, copy, modify, and distribute this software for any | |
| 10 * purpose with or without fee is hereby granted, provided that the above | |
| 11 * copyright notice and this permission notice appear in all copies. | |
| 12 * | |
| 13 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| 14 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
| 15 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
| 16 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
| 17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
| 18 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
| 19 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
| 20 */ | |
| 21 | |
| 22 #ifndef _ENGINE_H_ | |
| 23 #define _ENGINE_H_ | |
| 24 | |
| 25 #include "os.h" | |
| 26 | |
| 27 void shut(); | |
| 28 void shut(string); | |
| 29 | |
| 30 bool daemonize(); | |
| 31 | |
| 32 time_t gettime(); | |
| 33 | |
| 34 // Global definitions (constants) | |
| 35 | |
| 36 #define MAX_SERVERS 50 | |
| 37 | |
| 38 // Default values | |
| 39 | |
| 40 #define PID "cabal.pid" | |
| 41 | |
| 42 #define NICK "CABAL" | |
| 43 #define USER "cabal" | |
| 44 #define NAME "C++ Automatic Bot As a Lifeform" | |
| 45 #define CHANNEL "#cabal" | |
| 46 #define CHANNEL_KEY "" | |
| 47 | |
| 48 #define COMMANDER '.' | |
| 49 | |
| 50 #endif // _ENGINE_H_ |
