Added routines to cleanly shutdown daemon

This still needs more work, but the mechanism now exists
This commit is contained in:
John Jones 2017-04-17 11:58:47 -05:00
parent 2b0a29a06b
commit 427b5c948f
18 changed files with 265 additions and 108 deletions

View file

@ -16,11 +16,9 @@ struct Addresses {
/**
* initialize the Addresses struct with data. Must add the SwarmAddresses later
* @param addresses the struct
* @param api the API address (like "/ip4/127.0.0.1/tcp/5001")
* @param gateway the gateway address (like "ip4/127.0.0.1/tcp/8080")
* @returns true(1) on success, otherwise false(0)
*/
int repo_config_addresses_new(struct Addresses** addresses, char* api, char* gateway);
int repo_config_addresses_new(struct Addresses** addresses);
/**
* clear any memory allocated by a address_new call