X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=chunk_queue.h;h=9e794ba8e8afd524f4837bf9be7ee891ecd8f4e3;hp=2bed999cec5ecadc17b791db4a6ae85da78158ce;hb=98f2c8aea52a49fad3fd6df67b1eb32c1499176c;hpb=6bdac07456cb5872f824028912d1049883a9c21f diff --git a/chunk_queue.h b/chunk_queue.h index 2bed999c..9e794ba8 100644 --- a/chunk_queue.h +++ b/chunk_queue.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2009 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);