00001 /********************************************************************\ 00002 * BitlBee -- An IRC to other IM-networks gateway * 00003 * * 00004 * Copyright 2002-2004 Wilmer van der Gaast and others * 00005 \********************************************************************/ 00006 00007 /* Help file control */ 00008 00009 /* 00010 This program is free software; you can redistribute it and/or modify 00011 it under the terms of the GNU General Public License as published by 00012 the Free Software Foundation; either version 3 of the License, or 00013 (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License with 00021 the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL; 00022 if not, write to the Free Software Foundation, Inc., 59 Temple Place, 00023 Suite 330, Boston, MA 02111-1307 USA 00024 */ 00025 00026 #ifndef _HELP_H 00027 #define _HELP_H 00028 00032 typedef struct help 00033 { 00034 #if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 8 00035 GMappedFile *file; 00036 #else 00037 char *file; 00038 #endif 00039 GHashTable *entries; 00040 } help_t; 00041 00042 help_t *help_load_file(const char *helpfile); 00043 const char *help_get( help_t *help, const char *string ); 00044 void help_free(help_t *h); 00045 00046 #endif