2 * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
4 * gsttypefind.h: keep an easily accessible list of all buffers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library 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.
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 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
23 #ifndef __GST_BUFFER_STORE_H__
24 #define __GST_BUFFER_STORE_H__
26 #include <gst/gstbuffer.h>
27 #include <gst/gstinfo.h>
28 #include <gst/gstmarshal.h>
32 #define GST_TYPE_BUFFER_STORE (gst_buffer_store_get_type ())
33 #define GST_BUFFER_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_BUFFER_STORE, GstBufferStore))
34 #define GST_IS_BUFFER_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_BUFFER_STORE))
35 #define GST_BUFFER_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_BUFFER_STORE, GstBufferStoreClass))
36 #define GST_IS_BUFFER_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_BUFFER_STORE))
37 #define GST_BUFFER_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_BUFFER_STORE, GstBufferStoreClass))
39 typedef struct _GstBufferStore GstBufferStore;
40 typedef struct _GstBufferStoreClass GstBufferStoreClass;
42 struct _GstBufferStore {
48 struct _GstBufferStoreClass {
49 GObjectClass parent_class;
52 void (* cleared) (GstBufferStore * store);
53 gboolean (* buffer_added) (GstBufferStore * store,
57 GType gst_buffer_store_get_type (void);
59 GstBufferStore * gst_buffer_store_new (void);
60 void gst_buffer_store_clear (GstBufferStore * store);
62 gboolean gst_buffer_store_add_buffer (GstBufferStore * store,
65 GstBuffer * gst_buffer_store_get_buffer (GstBufferStore * store,
68 guint gst_buffer_store_get_size (GstBufferStore * store,
73 #endif /* __GST_BUFFER_STORE_H__ */