summaryrefslogtreecommitdiffstats
path: root/fb-helper.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-15fb-helper: Fix improper handling of failing realloc() in load_file()Florian Pritz1-2/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-11Add API key supportFlorian Pritz1-5/+19
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-05-11fb-helper: Remove forms array; use curl_formadd directlyv1.1.3Florian Pritz1-19/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-05-11fb-helper: Add help outputFlorian Pritz1-1/+22
It is still meant to be only used as a backend for fb-client, but this makes testing easier. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-09fb-helper: exit on unknown option errorv1.1.2Florian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-09Add debugging supportFlorian Pritz1-1/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-09fb-helper: Use getoptFlorian Pritz1-20/+28
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-11-12fb-helper.c: Fix descriptionFlorian Pritz1-1/+1
This is not a script so don't call it one. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-09-22fb-helper: only display progress bar is stderr is a ttyFlorian Pritz1-4/+9
If fb is used in a cronjob we don't care about the progress bar. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-09-22fb-helper: initialise *curl and check before cleaning upFlorian Pritz1-2/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04Error on 0-byte filesFlorian Pritz1-0/+6
No point in uploading a really empty file and it might even cause confusion to see an empty page when clicking the link. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04fb-helper: properly clean up upon errorFlorian Pritz1-5/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-16fb-helper.c: remove "OVER 9000" jokeFlorian Pritz1-3/+1
9000 hours is just over one year and probably nobody is ever going to hit this. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: remove unused FORMAT_ARRAY_SIZE defineFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: change format_bytes() arguments and buffer sizeFlorian Pritz1-7/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: clean up curl options; set follow locationFlorian Pritz1-2/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: remove unused warning for callback parametersFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: calculate a moving average of the upload speedFlorian Pritz1-5/+32
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-10fb-helper.c: calculate ETA for the uploadFlorian Pritz1-3/+36
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25fb-helper.c: catch read() errorsFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-10make it more obvious that we convert from micro seconds to secondsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-10remove magic constantFlorian Pritz1-4/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-10-09fb-helper.c: main() to increase readabilityFlorian Pritz1-42/+49
This moves some code, removes a big if/else by bailing early and adds comments. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-10-09fb-helper.c: improve readabilityFlorian Pritz1-9/+22
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-15use define instead of sed for VERSION expansion in helperFlorian Pritz1-0/+256
Signed-off-by: Florian Pritz <bluewind@xinu.at>