summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vendor/mcmc/mcmc.c5
-rw-r--r--vendor/mcmc/mcmc.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/vendor/mcmc/mcmc.c b/vendor/mcmc/mcmc.c
index 3bd40b7..cdd5142 100644
--- a/vendor/mcmc/mcmc.c
+++ b/vendor/mcmc/mcmc.c
@@ -361,6 +361,11 @@ int mcmc_parse_buf(void *c, char *buf, size_t read, mcmc_resp_t *r) {
return _mcmc_parse_response(ctx, r);
}
+int mcmc_bare_parse_buf(char *buf, size_t read, mcmc_resp_t *r) {
+ mcmc_ctx_t ctx;
+ return mcmc_parse_buf(&ctx, buf, read, r);
+}
+
/*** Functions wrapping syscalls **/
// TODO: should be able to flip between block and nonblock.
diff --git a/vendor/mcmc/mcmc.h b/vendor/mcmc/mcmc.h
index 50cadf3..d6c426e 100644
--- a/vendor/mcmc/mcmc.h
+++ b/vendor/mcmc/mcmc.h
@@ -79,6 +79,7 @@ int mcmc_fd(void *c);
size_t mcmc_size(int options);
size_t mcmc_min_buffer_size(int options);
int mcmc_parse_buf(void *c, char *buf, size_t read, mcmc_resp_t *r);
+int mcmc_bare_parse_buf(char *buf, size_t read, mcmc_resp_t *r);
int mcmc_connect(void *c, char *host, char *port, int options);
int mcmc_check_nonblock_connect(void *c, int *err);
int mcmc_send_request(void *c, const char *request, int len, int count);