1 /* 2 * 3 * This program is free software; you can redistribute it and/or modify it 4 * under the terms of the GNU Lesser General Public License as published by 5 * the Free Software Foundation. 6 * 7 * This program is distributed in the hope that it will be useful, but 8 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 9 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 10 * for more details. 11 * 12 * You should have received a copy of the GNU Lesser General Public License 13 * along with this program; if not, see <http://www.gnu.org/licenses/>. 14 * 15 * 16 * Authors: 17 * Tor Lillqvist <tml@novell.com> 18 * 19 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 20 * 21 */ 22 23 #ifndef _E_UTIL_PRIVATE_H_ 24 #define _E_UTIL_PRIVATE_H_ 25 26 #include <fcntl.h> 27 #include <glib.h> 28 29 #ifndef O_BINARY 30 #define O_BINARY 0 31 #endif 32 33 #ifdef G_OS_WIN32 34 35 #define fsync(fd) 0 36 37 gpointer _e_get_dll_hmodule (void) G_GNUC_CONST; 38 39 const gchar *_e_get_bindir (void) G_GNUC_CONST; 40 const gchar *_e_get_datadir (void) G_GNUC_CONST; 41 const gchar *_e_get_ecpsdir (void) G_GNUC_CONST; 42 const gchar *_e_get_etspecdir (void) G_GNUC_CONST; 43 const gchar *_e_get_galviewsdir (void) G_GNUC_CONST; 44 const gchar *_e_get_helpdir (void) G_GNUC_CONST; 45 const gchar *_e_get_icondir (void) G_GNUC_CONST; 46 const gchar *_e_get_imagesdir (void) G_GNUC_CONST; 47 const gchar *_e_get_libdir (void) G_GNUC_CONST; 48 const gchar *_e_get_libexecdir (void) G_GNUC_CONST; 49 const gchar *_e_get_localedir (void) G_GNUC_CONST; 50 const gchar *_e_get_moduledir (void) G_GNUC_CONST; 51 const gchar *_e_get_plugindir (void) G_GNUC_CONST; 52 const gchar *_e_get_prefix (void) G_GNUC_CONST; 53 const gchar *_e_get_privdatadir (void) G_GNUC_CONST; 54 const gchar *_e_get_ruledir (void) G_GNUC_CONST; 55 const gchar *_e_get_sounddir (void) G_GNUC_CONST; 56 const gchar *_e_get_sysconfdir (void) G_GNUC_CONST; 57 const gchar *_e_get_toolsdir (void) G_GNUC_CONST; 58 const gchar *_e_get_uidir (void) G_GNUC_CONST; 59 const gchar *_e_get_webkitdatadir (void) G_GNUC_CONST; 60 61 #undef DATADIR 62 #define DATADIR _e_get_datadir () 63 64 #undef LIBDIR 65 #define LIBDIR _e_get_libdir () 66 67 #undef SYSCONFDIR 68 #define SYSCONFDIR _e_get_sysconfdir () 69 70 #undef PREFIX 71 #define PREFIX _e_get_prefix () 72 73 #undef EVOLUTION_BINDIR 74 #define EVOLUTION_BINDIR _e_get_bindir () 75 76 #undef EVOLUTION_DATADIR 77 #define EVOLUTION_DATADIR _e_get_datadir () 78 79 #undef EVOLUTION_ECPSDIR 80 #define EVOLUTION_ECPSDIR _e_get_ecpsdir () 81 82 #undef EVOLUTION_ETSPECDIR 83 #define EVOLUTION_ETSPECDIR _e_get_etspecdir () 84 85 #undef EVOLUTION_LOCALEDIR 86 #define EVOLUTION_LOCALEDIR _e_get_localedir () 87 88 #undef EVOLUTION_GALVIEWSDIR 89 #define EVOLUTION_GALVIEWSDIR _e_get_galviewsdir () 90 91 #undef EVOLUTION_HELPDIR 92 #define EVOLUTION_HELPDIR _e_get_helpdir () 93 94 #undef EVOLUTION_ICONDIR 95 #define EVOLUTION_ICONDIR _e_get_icondir () 96 97 #undef EVOLUTION_IMAGESDIR 98 #define EVOLUTION_IMAGESDIR _e_get_imagesdir () 99 100 #undef EVOLUTION_LIBEXECDIR 101 #define EVOLUTION_LIBEXECDIR _e_get_libexecdir () 102 103 #undef EVOLUTION_MODULEDIR 104 #define EVOLUTION_MODULEDIR _e_get_moduledir () 105 106 #undef EVOLUTION_PLUGINDIR 107 #define EVOLUTION_PLUGINDIR _e_get_plugindir () 108 109 #undef EVOLUTION_PRIVDATADIR 110 #define EVOLUTION_PRIVDATADIR _e_get_privdatadir () 111 112 #undef EVOLUTION_SOUNDDIR 113 #define EVOLUTION_SOUNDDIR _e_get_sounddir () 114 115 #undef EVOLUTION_SYSCONFDIR 116 #define EVOLUTION_SYSCONFDIR _e_get_sysconfdir () 117 118 #undef EVOLUTION_TOOLSDIR 119 #define EVOLUTION_TOOLSDIR _e_get_toolsdir () 120 121 #undef EVOLUTION_UIDIR 122 #define EVOLUTION_UIDIR _e_get_uidir () 123 124 #undef EVOLUTION_RULEDIR 125 #define EVOLUTION_RULEDIR _e_get_ruledir () 126 127 #undef EVOLUTION_WEBKITDATADIR 128 #define EVOLUTION_WEBKITDATADIR _e_get_webkitdatadir () 129 130 #endif /* G_OS_WIN32 */ 131 132 #endif /* _E_UTIL_PRIVATE_H_ */ 133