source: git/libpolys/resources/feResource.h @ 51c97f

spielwiese
Last change on this file since 51c97f was 51c97f, checked in by Hans Schoenemann <hannes@…>, 12 years ago
partially seperate feResources
  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[46395ad]1#ifndef FERESOURCE_H
2#define FERESOURCE_H
[ce2120e]3
4#define DIR_SEP '/'
5#define DIR_SEPP "/"
6
[8c9912]7#ifndef MAXPATHLEN
8#define MAXPATHLEN 1024
9#endif
10
[ed47edf]11#ifdef __cplusplus
[46395ad]12/*****************************************************************
13 *
14 * Resource management (feResources.cc)
15 *
16 *****************************************************************/
17// returns value of Resource as read-only string, or NULL
18// if Resource not found
19// issues warning, if explicitely requested (warn > 0), or
20// if warn < 0 and Resource is gotten for the first time
21// Always quiet if warn == 0
22char* feResource(const char id, int warn = -1);
23char* feResource(const char* key, int warn = -1);
[8c9912]24
25char* feGetResource(const char id);
26
27// char* feResourceDefault(const char id);
28// char* feResourceDefault(const char* key);
29
30
[46395ad]31// This needs to be called before the first call to feResource
32// Initializes Resources, SearchPath, and extends PATH
[b28bafe]33void feInitResources(const char* argv0 = NULL);
[46395ad]34// Re-inits resources, should be called after changing env. variables
35void feReInitResources();
36// Prints resources into string with StringAppend, etc
37void feStringAppendResources(int warn = -1);
[2c52441]38#endif /* end ifdef __cplusplus */
[5df856]39
[2c52441]40extern char* feArgv0; 
[8c9912]41
[5df856]42const char fePathSep =
[9d53d0]43/* not really cygwin, applies to all windows systems:*/
[5df856]44#if (defined(CYGWIN) || defined(ix86_Win))
45                ';'
46#else
47                ':'
48#endif
49                ;
50
51
52
[46395ad]53#endif
Note: See TracBrowser for help on using the repository browser.