naspro
view naspro-core/include/NASPRO/core/env.h @ 173:71372f617827
Totally CMakeized, a bit of doc
| author | Stefano D'Angelo <zanga.mail@gmail.com> |
|---|---|
| date | Fri Mar 26 18:54:24 2010 +0200 (2010-03-26) |
| parents | c7f1f52651be |
| children | 4f7243a606b1 |
line source
1 /*
2 * NASPRO - NASPRO Architecture for Sound Processing
3 * Core library
4 *
5 * Copyright (C) 2007-2009 Stefano D'Angelo <zanga.mail@gmail.com>
6 *
7 * See the COPYING file for license conditions.
8 */
10 #ifndef _NACORE_ENV_H
11 #define _NACORE_ENV_H
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
17 /*
18 * Retrieves the value of an environment variable, returns NULL on failure. If
19 * not NULL, the value must be freed using nacore_env_free_var_value().
20 *
21 * name is the name of the environment variable
22 */
23 char * nacore_env_get_var(const char *name);
25 /*
26 * Frees, if needed, a value returned by nacore_env_get_var().
27 *
28 * value is the value returned by nacore_env_get_var().
29 */
30 void nacore_env_free_var_value(char *value);
32 #ifdef __cplusplus
33 }
34 #endif
36 #endif /* !_NACORE_ENV_H */
