diff options
author | Franklin Wei <me@fwei.tk> | 2018-06-30 20:01:43 -0400 |
---|---|---|
committer | Franklin Wei <me@fwei.tk> | 2018-06-30 20:01:43 -0400 |
commit | f0519032a59aff4ca9edcb2916e094db93e08942 (patch) | |
tree | 2888deb8615fb03f30bab36773a9605a0546160d /service_provider.h | |
parent | 03a354b8d0f2a8820db9571c639804648d804ac4 (diff) | |
download | csaa-f0519032a59aff4ca9edcb2916e094db93e08942.zip csaa-f0519032a59aff4ca9edcb2916e094db93e08942.tar.gz csaa-f0519032a59aff4ca9edcb2916e094db93e08942.tar.bz2 csaa-f0519032a59aff4ca9edcb2916e094db93e08942.tar.xz |
Add dummy client/server for comparison; fix bugs and polish database code
Diffstat (limited to 'service_provider.h')
-rw-r--r-- | service_provider.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/service_provider.h b/service_provider.h index fe7a4cd..fdc7bc0 100644 --- a/service_provider.h +++ b/service_provider.h @@ -69,7 +69,8 @@ struct service_provider *sp_new(const void *key, size_t keylen, int logleaves, const char *data_dir, - const char *dbpath); + const char *dbpath, + bool overwrite); void sp_free(struct service_provider *sp); /* see .c file for documentation */ @@ -129,9 +130,11 @@ void *sp_retrieve_file(struct service_provider *sp, struct iomt **composefile, size_t *len); -int sp_main(int sockfd, int logleaves, const char *dbpath); - void sp_test(void); #endif +#if defined(DUMMY) || !defined(CLIENT) +int sp_main(int sockfd, int logleaves, const char *dbpath, bool overwrite); +#endif + #endif |