X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=chunk_queue.h;h=9e794ba8e8afd524f4837bf9be7ee891ecd8f4e3;hp=9959b74cdf8a33f3bddc4bdad04bb49b2f6001b2;hb=60ef885705932a682097ad2b9f2379282d814e79;hpb=e61fefa8429ed4c87098f7a81373a8cf952ee8c7;ds=sidebyside diff --git a/chunk_queue.h b/chunk_queue.h index 9959b74c..9e794ba8 100644 --- a/chunk_queue.h +++ b/chunk_queue.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2008 Andre Noll + * Copyright (C) 2007-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -16,3 +16,4 @@ void cq_update(struct chunk_queue *cq, size_t sent); int cq_get(struct queued_chunk *qc, const char **buf, size_t *len); struct chunk_queue *cq_new(size_t max_pending); void cq_destroy(struct chunk_queue *cq); +int cq_force_enqueue(struct chunk_queue *cq, const char *buf, size_t num_bytes);