1 /*
2  * Distributed under the Boost Software License, Version 1.0.
3  *    (See accompanying file LICENSE_1_0.txt or copy at
4  *          http://www.boost.org/LICENSE_1_0.txt)
5  */
6 module glib.genviron;
7 
8 import glib.gtypes;
9 
10 
11 extern (C) {
12 
13     gchar **      g_listenv          ();
14 
15     gchar **      g_get_environ      ();
16 
17     const(gchar)* g_environ_getenv   (gchar       **envp,
18                                       const(gchar) *variable);
19 
20     gchar **      g_environ_setenv   (gchar       **envp,
21                                       const(gchar) *variable,
22                                       const(gchar) *value,
23                                       gboolean      overwrite);
24 
25     gchar **      g_environ_unsetenv (gchar       **envp,
26                                       const(gchar) *variable);
27 
28     version(Win32) {
29 
30         const(gchar)*g_getenv_utf8   (const(gchar) *variable);
31 
32         gboolean     g_setenv_utf8   (const(gchar) *variable,
33                                       const(gchar) *value,
34                                       gboolean      overwrite);
35 
36         void         g_unsetenv_utf8 (const(gchar)  *variable);
37 
38         alias g_getenv = g_getenv_utf8;
39         alias g_setenv = g_setenv_utf8;
40         alias g_unsetenv = g_unsetenv_utf8;
41 
42     }
43     else {
44 
45         const(gchar) * g_getenv          (const(gchar)  *variable);
46 
47         gboolean      g_setenv           (const(gchar) *variable,
48                                           const(gchar) *value,
49                                           gboolean      overwrite);
50 
51         void          g_unsetenv         (const(gchar) *variable);
52 
53     }
54 
55 }
56