1/* GdkPixbuf library
2 * Copyright (C) 2003-2006 David Schleef <ds@schleef.org>
3 * 2005-2006 Eric Anholt <eric@anholt.net>
4 * 2006-2007 Benjamin Otte <otte@gnome.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __GDK_PIXBUF_BUFFER_QUEUE_H__
21#define __GDK_PIXBUF_BUFFER_QUEUE_H__
22
23#include <glib.h>
24
25G_BEGIN_DECLS
26
27typedef struct _GdkPixbufBufferQueue GdkPixbufBufferQueue;
28
29GdkPixbufBufferQueue * gdk_pixbuf_buffer_queue_new (void);
30
31GdkPixbufBufferQueue * gdk_pixbuf_buffer_queue_ref (GdkPixbufBufferQueue *queue);
32void gdk_pixbuf_buffer_queue_unref (GdkPixbufBufferQueue *queue);
33
34gsize gdk_pixbuf_buffer_queue_get_size (GdkPixbufBufferQueue *queue);
35gsize gdk_pixbuf_buffer_queue_get_offset (GdkPixbufBufferQueue *queue);
36
37void gdk_pixbuf_buffer_queue_flush (GdkPixbufBufferQueue *queue,
38 gsize n_bytes);
39void gdk_pixbuf_buffer_queue_clear (GdkPixbufBufferQueue *queue);
40void gdk_pixbuf_buffer_queue_push (GdkPixbufBufferQueue *queue,
41 GBytes *buffer);
42GBytes * gdk_pixbuf_buffer_queue_pull (GdkPixbufBufferQueue *queue,
43 gsize length);
44GBytes * gdk_pixbuf_buffer_queue_pull_buffer (GdkPixbufBufferQueue *queue);
45GBytes * gdk_pixbuf_buffer_queue_peek (GdkPixbufBufferQueue *queue,
46 gsize length);
47GBytes * gdk_pixbuf_buffer_queue_peek_buffer (GdkPixbufBufferQueue *queue);
48
49G_END_DECLS
50#endif
51
52

source code of gtk/subprojects/gdk-pixbuf/gdk-pixbuf/gdk-pixbuf-buffer-queue-private.h