diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2012-02-12 21:17:11 -0800 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-02-17 11:42:20 -0500 |
commit | d37a1ec8c678d80072c0299515547343bd1c8a07 (patch) | |
tree | c086364309c04b3f05deed8783809b4f83a60473 /src/common/util.h | |
parent | 0ba93e184ad6216f886d7347dd81fe08edbb99c7 (diff) | |
download | tor-d37a1ec8c678d80072c0299515547343bd1c8a07.tar.gz tor-d37a1ec8c678d80072c0299515547343bd1c8a07.zip |
Add set_environment_variable_in_smartlist
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index f485446069..9d1baf0a25 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -396,6 +396,11 @@ void process_environment_free(process_environment_t *env); struct smartlist_t *get_current_process_environment_variables(void); +void set_environment_variable_in_smartlist(struct smartlist_t *env_vars, + const char *new_var, + void (*free_old)(void*), + int free_p); + /* Values of process_handle_t.status. PROCESS_STATUS_NOTRUNNING must be * 0 because tor_check_port_forwarding depends on this being the initial * statue of the static instance of process_handle_t */ |