Added routines to cleanly shutdown daemon
This still needs more work, but the mechanism now exists
This commit is contained in:
parent
2b0a29a06b
commit
427b5c948f
18 changed files with 265 additions and 108 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue