X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=chunk_queue.h;h=9e794ba8e8afd524f4837bf9be7ee891ecd8f4e3;hp=2bed999cec5ecadc17b791db4a6ae85da78158ce;hb=6b935f552ebfe3a0a83ec9367deb2f42c1aff252;hpb=00e4d4da1b2c00da139b09d3ed4ab9ad9fba2691 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);