mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
style changes
This commit is contained in:
parent
9b3def6f61
commit
8ca45f2538
4 changed files with 33 additions and 23 deletions
|
|
@ -1,10 +1,22 @@
|
|||
#ifndef _SWAY_ENV_H
|
||||
#define _SWAY_ENV_H
|
||||
|
||||
void env_free(char **envp);
|
||||
/**
|
||||
* Deallocates an environment array created by
|
||||
* sway_env_get_envp or sway_env_setenv.
|
||||
*/
|
||||
void env_destroy(char **envp);
|
||||
|
||||
char **env_get_envp();
|
||||
/**
|
||||
* Gets a newly-allocated environment array pointer
|
||||
* from the global environment.
|
||||
*/
|
||||
char **env_create();
|
||||
|
||||
/**
|
||||
* Sets or overwrites an environment variable in the given environment.
|
||||
* Setting a new variable will reallocate the entire array.
|
||||
*/
|
||||
char **env_setenv(char **envp, char *name, char *value);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue