initial work on a wifi/http configuration module

This commit is contained in:
sle118
2019-08-29 06:49:21 -04:00
parent 7f97f621c4
commit 6e7793a756
63 changed files with 4066 additions and 396 deletions

View File

@@ -64,11 +64,6 @@ void buf_flush(struct buffer *buf) {
mutex_unlock(buf->mutex);
}
void _buf_flush(struct buffer *buf) {
buf->readp = buf->buf;
buf->writep = buf->buf;
}
// adjust buffer to multiple of mod bytes so reading in multiple always wraps on frame boundary
void buf_adjust(struct buffer *buf, size_t mod) {
size_t size;
@@ -83,7 +78,6 @@ void buf_adjust(struct buffer *buf, size_t mod) {
// called with mutex locked to resize, does not retain contents, reverts to original size if fails
void _buf_resize(struct buffer *buf, size_t size) {
if (size == buf->size) return;
free(buf->buf);
buf->buf = malloc(size);
if (!buf->buf) {