X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fscript.h;h=4d10d2e8e004b66c901e21d101d2f7f83dee870f;hb=f86a5f1d70206321b01ec60f6a69f8cbf1a2b732;hp=2e26418d46be4f72f1e91ea17d052c348c53b52f;hpb=5cbef906209eb5005f821af8f55a6f5d7e7d060c;p=tinc diff --git a/src/script.h b/src/script.h index 2e26418d..4d10d2e8 100644 --- a/src/script.h +++ b/src/script.h @@ -1,3 +1,6 @@ +#ifndef TINC_SCRIPT_H +#define TINC_SCRIPT_H + /* script.h -- header file for script.c Copyright (C) 1999-2005 Ivo Timmermans, @@ -18,8 +21,7 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_SCRIPT_H__ -#define __TINC_SCRIPT_H__ +#include "system.h" typedef struct environment { int n; @@ -27,12 +29,11 @@ typedef struct environment { char **entries; } environment_t; -extern int environment_add(environment_t *env, const char *format, ...); -extern int environment_placeholder(environment_t *env); -extern void environment_update(environment_t *env, int pos, const char *format, ...); +extern int environment_add(environment_t *env, const char *format, ...) ATTR_FORMAT(printf, 2, 3); +extern void environment_update(environment_t *env, int pos, const char *format, ...) ATTR_FORMAT(printf, 3, 4); extern void environment_init(environment_t *env); extern void environment_exit(environment_t *env); extern bool execute_script(const char *name, environment_t *env); -#endif /* __TINC_SCRIPT_H__ */ +#endif