diff options
Diffstat (limited to 'src/web.h')
| -rw-r--r-- | src/web.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -21,6 +21,7 @@ int web_begin(struct Server *server, int port); int web_join(struct Server *server); #define CLIENT_NAME_MAX 32 +#define CLIENT_SECRET_LEN 33 struct PostCollector { char *data; @@ -45,6 +46,7 @@ struct Request { struct CreateClientResult { int64_t id; char* name; + char secret[CLIENT_SECRET_LEN]; }; int create_client(struct Request *req, char *name, struct CreateClientResult *result); @@ -53,6 +55,7 @@ int delete_client(struct Request *req, int64_t client_id); struct ListClientResultClient { int64_t id; char name[CLIENT_NAME_MAX]; + char secret[CLIENT_SECRET_LEN]; }; struct ListClientResult { |
