diff options
Diffstat (limited to 'src/transport.h')
| -rw-r--r-- | src/transport.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport.h b/src/transport.h index 7fcbdb3..1a46dd2 100644 --- a/src/transport.h +++ b/src/transport.h @@ -3,6 +3,11 @@ #include "api.h" +enum HttpMethod { + HTTP_GET, + HTTP_POST, +}; + struct SizedBlock { char *memory; size_t size; @@ -14,4 +19,4 @@ struct SizedBlock { #define GET_ROOT_URL "https://internal.cloud.remarkable.com/sync/v4/root" #define GET_BLOB_URL "https://internal.cloud.remarkable.com/sync/v4/files/%.*s" -enum ReturnCode transport_request(char *url, char *token, char *reqBody, struct SizedBlock *retBody); +enum ReturnCode transport_request(char *url, enum HttpMethod method, char *token, char *reqBody, struct SizedBlock *retBody); |
