First simplistic implementation of a divelogs.de upload

This has no user interface and hardcodes a testing username / password.
But it can successfully create a DLD file (thanks to Miika and Lubomir)
and then uses libsoup to upload that to the server.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-03-13 20:37:38 -07:00
parent 3e1098bd03
commit bd9f8ad7f8
5 changed files with 53 additions and 21 deletions

2
file.c
View file

@ -14,7 +14,7 @@
#define O_BINARY 0
#endif
static int readfile(const char *filename, struct memblock *mem)
int readfile(const char *filename, struct memblock *mem)
{
int ret, fd;
struct stat st;