summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-05 13:17:02 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-05 13:17:02 +0200
commit7b2cfb422af6a957aa90e22bd6e9b19f16b30319 (patch)
treeaaa2fd85662309af45ab4fced6b332445bdf0f10 /src/fastd.h
parent329d15d50c54a69ce8e2be0865124744c0bf3428 (diff)
downloadfastd-7b2cfb422af6a957aa90e22bd6e9b19f16b30319.tar
fastd-7b2cfb422af6a957aa90e22bd6e9b19f16b30319.zip
Cleanly shutdown; add on-down command
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fastd.h b/src/fastd.h
index f07f108..1e78dc7 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -96,7 +96,7 @@ struct _fastd_config {
bool peer_to_peer;
- fastd_protocol *protocol;
+ const fastd_protocol *protocol;
char *secret;
unsigned key_valid;
unsigned key_refresh;
@@ -112,6 +112,9 @@ struct _fastd_config {
char *on_up;
char *on_up_dir;
+
+ char *on_down;
+ char *on_down_dir;
};
struct _fastd_context {
@@ -146,6 +149,7 @@ void fastd_read_peer_dir(fastd_context *ctx, fastd_config *conf, const char *dir
bool fastd_read_config(fastd_context *ctx, fastd_config *conf, const char *filename, bool peer_config, int depth);
void fastd_configure(fastd_context *ctx, fastd_config *conf, int argc, char *const argv[]);
void fastd_reconfigure(fastd_context *ctx, fastd_config *conf);
+void fastd_config_release(fastd_context *ctx, fastd_config *conf);
void fastd_random_bytes(fastd_context *ctx, void *buffer, size_t len, bool secure);