00001
00016 #ifndef GRU_BASE_H
00017 #define GRU_BASE_H
00018
00019 #include <stdio.h>
00020 #include <stdlib.h>
00021
00022 #if !defined(_WIN32) && !defined(_WIN64)
00023 #include <pwd.h>
00024 #include <unistd.h>
00025 #endif
00026 #include <sys/types.h>
00027
00028 #include "gru_portable.h"
00029
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033
00034 #define GRU_OPT_MAX_STR_SIZE 256
00035 #define GRU_OPT_MAX_STR_SIZE_MASK "%256s"
00036 #define GRU_OPT_MAX_CHAR_SIZE_MASK "%256c"
00037
00044 gru_export const char *gru_base_app_home(const char *appname);
00045
00046 #ifdef __cplusplus
00047 }
00048 #endif
00049
00050 #endif