Yattm - unified GTK instant-messaging client | |
[Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003] |
00001 /* 00002 * Yattm 00003 * 00004 * Copyright (C) 1999, Torrey Searle <tsearle@uci.edu> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 00022 #ifndef __PREFS_H__ 00023 #define __PREFS_H__ 00024 00025 #include <glib.h> 00026 00027 00028 #define MAX_PREF_NAME_LEN 255 00029 #define MAX_PREF_LEN 1024 00030 00031 typedef struct _ptr_list { 00032 char key[MAX_PREF_NAME_LEN+1]; 00033 void *value; 00034 } ptr_list; 00035 00036 void write_prefs(); 00037 void eb_read_prefs(); 00038 void build_prefs(); 00039 void rebuild_import_menu(); 00040 void rebuild_profile_menu(); 00041 00042 #if defined(__MINGW32__) && defined(__IN_PLUGIN__) 00043 __declspec(dllimport) void *GetPref(char *key); 00044 #else 00045 extern void *GetPref(char *key); 00046 #endif 00047 00048 void *SetPref(char *key, void *data); 00049 int iGetLocalPref(char *key); 00050 void iSetLocalPref(char *key, int data); 00051 float fGetLocalPref(char *key); 00052 void fSetLocalPref(char *key, float data); 00053 char *cGetLocalPref(char *key); 00054 void cSetLocalPref(char *key, char *data); 00055 void rebuild_set_status_menu(); 00056 void save_account_info(char *service, GList *pairs); 00057 void reload_service_accounts(int service_id); 00058 00059 #endif