root/trunk/src/ggtrans.h

Revision 680, 1.8 kB (checked in by jajcus, 3 years ago)

- dates in the copyright header updated

Line 
1 /* $Id: ggtrans.h,v 1.13 2004/03/05 08:39:41 jajcus Exp $ */
2
3 /*
4  *  (C) Copyright 2002-2006 Jacek Konieczny [jajcus(a)jajcus,net]
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License Version 2 as
8  *  published by the Free Software Foundation.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20 #ifndef ggtrans_h
21 #define ggtrans_h
22
23 #include <libxode.h>
24 #include <libintl.h>
25 #include <glib.h>
26 #include "../config.h"
27
28 /* older glib versions don't define g_log() */
29 #ifndef g_debug
30 #define g_debug(format...)      g_log (G_LOG_DOMAIN,         \
31                                        G_LOG_LEVEL_DEBUG,    \
32                                        format)
33 #endif
34
35 #ifdef ENABLE_NLS
36 /* gettext shortcut for translating messages */
37 define _(String) gettext (String)
38
39 /* dummy gettext shortcut for translations out-of-place */
40 define N_(String) (String)
41
42 /* gettext shortcut for translating error/debug messages (locale/encoding must be switched) */
43 define L_(String) local_translate(String)
44 const char *local_translate(const char *str);
45 #else
46 define _(String) String
47 define N_(String) String
48 define L_(String) String
49 #endif
50
51
52 extern GMainLoop *main_loop;
53 extern gboolean do_restart;
54 extern GList *admins;
55
56 extern time_t start_time;
57 extern unsigned long packets_in;
58 extern unsigned long packets_out;
59 extern unsigned long gg_messages_in;
60 extern unsigned long gg_messages_out;
61
62 #endif
Note: See TracBrowser for help on using the browser.