style changes

This commit is contained in:
slonkazoid 2024-09-12 14:37:29 +03:00
parent 9b3def6f61
commit 8ca45f2538
No known key found for this signature in database
4 changed files with 33 additions and 23 deletions

View file

@ -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