Debian Codegraph @

libs/gst/base/gstqueuearray.h

raw
1 /* GStreamer
2 * Copyright (C) 2009-2010 Edward Hervey <[email protected]>
3 *
4 * gstqueuearray.h:
5 *
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.
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 * Library General Public License for more details.
15 *
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., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 */
21
22 #include <glib.h>
23
24 #ifndef __GST_QUEUE_ARRAY_H__
25 #define __GST_QUEUE_ARRAY_H__
26
27 #include <gst/base/base-prelude.h>
28
29 G_BEGIN_DECLS
30
31 /**
32 * GstQueueArray: (skip)
33 *
34 * Deprecated: 1.26: Use #GstVecDeque instead.
35 */
36 typedef struct _GstQueueArray GST_BASE_DEPRECATED_TYPE_FOR(GstVecDeque) GstQueueArray;
37
38 GST_BASE_DEPRECATED_FOR(gst_vec_deque_new)
39 GstQueueArray * gst_queue_array_new (guint initial_size);
40
41 GST_BASE_DEPRECATED_FOR(gst_vec_deque_free)
42 void gst_queue_array_free (GstQueueArray * array);
43
44 GST_BASE_DEPRECATED_FOR(gst_vec_deque_set_clear_func)
45 void gst_queue_array_set_clear_func (GstQueueArray *array,
46 GDestroyNotify clear_func);
47
48 GST_BASE_DEPRECATED_FOR(gst_vec_deque_clear)
49 void gst_queue_array_clear (GstQueueArray * array);
50
51 GST_BASE_DEPRECATED_FOR(gst_vec_deque_pop_head)
52 gpointer gst_queue_array_pop_head (GstQueueArray * array);
53
54 GST_BASE_DEPRECATED_FOR(gst_vec_deque_peek_head)
55 gpointer gst_queue_array_peek_head (GstQueueArray * array);
56
57 GST_BASE_DEPRECATED_FOR(gst_vec_deque_peek_nth)
58 gpointer gst_queue_array_peek_nth (GstQueueArray * array, guint idx);
59
60 GST_BASE_DEPRECATED_FOR(gst_vec_deque_pop_tail)
61 gpointer gst_queue_array_pop_tail (GstQueueArray * array);
62
63 GST_BASE_DEPRECATED_FOR(gst_vec_deque_peek_tail)
64 gpointer gst_queue_array_peek_tail (GstQueueArray * array);
65
66 GST_BASE_DEPRECATED_FOR(gst_vec_deque_push_tail)
67 void gst_queue_array_push_tail (GstQueueArray * array,
68 gpointer data);
69 GST_BASE_DEPRECATED_FOR(gst_vec_deque_is_empty)
70 gboolean gst_queue_array_is_empty (GstQueueArray * array);
71
72 GST_BASE_DEPRECATED_FOR(gst_vec_deque_drop_element)
73 gpointer gst_queue_array_drop_element (GstQueueArray * array,
74 guint idx);
75 GST_BASE_DEPRECATED_FOR(gst_vec_deque_find)
76 guint gst_queue_array_find (GstQueueArray * array,
77 GCompareFunc func,
78 gpointer data);
79 GST_BASE_DEPRECATED_FOR(gst_vec_deque_get_length)
80 guint gst_queue_array_get_length (GstQueueArray * array);
81
82 /* Functions for use with structures */
83
84 GST_BASE_DEPRECATED_FOR(gst_vec_deque_new_for_struct)
85 GstQueueArray * gst_queue_array_new_for_struct (gsize struct_size,
86 guint initial_size);
87 GST_BASE_DEPRECATED_FOR(gst_vec_deque_push_tail_struct)
88 void gst_queue_array_push_tail_struct (GstQueueArray * array,
89 gpointer p_struct);
90 GST_BASE_DEPRECATED_FOR(gst_vec_deque_pop_head_struct)
91 gpointer gst_queue_array_pop_head_struct (GstQueueArray * array);
92
93 GST_BASE_DEPRECATED_FOR(gst_vec_deque_peek_head_struct)
94 gpointer gst_queue_array_peek_head_struct (GstQueueArray * array);
95
96 GST_BASE_DEPRECATED_FOR(gst_vec_deque_peek_nth_struct)
97 gpointer gst_queue_array_peek_nth_struct (GstQueueArray * array, guint idx);
98
99 GST_BASE_DEPRECATED_FOR(gst_vec_deque_drop_struct)
100 gboolean gst_queue_array_drop_struct (GstQueueArray * array,
101 guint idx,
102 gpointer p_struct);
103 GST_BASE_DEPRECATED_FOR(gst_vec_deque_pop_tail_struct)
104 gpointer gst_queue_array_pop_tail_struct (GstQueueArray * array);
105
106 GST_BASE_DEPRECATED_FOR(gst_vec_deque_peek_tail_struct)
107 gpointer gst_queue_array_peek_tail_struct (GstQueueArray * array);
108
109 GST_BASE_DEPRECATED_FOR(gst_vec_deque_push_sorted)
110 void gst_queue_array_push_sorted (GstQueueArray * array,
111 gpointer data,
112 GCompareDataFunc func,
113 gpointer user_data);
114
115 GST_BASE_DEPRECATED_FOR(gst_vec_deque_push_sorted_struct)
116 void gst_queue_array_push_sorted_struct (GstQueueArray * array,
117 gpointer p_struct,
118 GCompareDataFunc func,
119 gpointer user_data);
120
121 GST_BASE_DEPRECATED_FOR(gst_vec_deque_sort)
122 void gst_queue_array_sort (GstQueueArray *array,
123 GCompareDataFunc compare_func,
124 gpointer user_data);
125
126 G_END_DECLS
127
128 #endif