3 * A pointer queue that can be sorted.
5 * Copyright (C) 2014 Xamarin Inc
7 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
10 #ifndef __MONO_SGEN_POINTER_QUEUE_H__
11 #define __MONO_SGEN_POINTER_QUEUE_H__
22 #define SGEN_POINTER_QUEUE_INIT(mem_type) { NULL, 0, 0, (mem_type) }
24 void sgen_pointer_queue_add (SgenPointerQueue *queue, void *ptr);
25 void sgen_pointer_queue_clear (SgenPointerQueue *queue);
26 void sgen_pointer_queue_remove_nulls (SgenPointerQueue *queue);
27 void sgen_pointer_queue_sort_uniq (SgenPointerQueue *queue);
28 size_t sgen_pointer_queue_search (SgenPointerQueue *queue, void *addr);
29 size_t sgen_pointer_queue_find (SgenPointerQueue *queue, void *ptr);
30 void sgen_pointer_queue_init (SgenPointerQueue *queue, int mem_type);
31 void* sgen_pointer_queue_pop (SgenPointerQueue *queue);
32 gboolean sgen_pointer_queue_is_empty (SgenPointerQueue *queue);
33 void sgen_pointer_queue_free (SgenPointerQueue *queue);
34 gboolean sgen_pointer_queue_will_grow (SgenPointerQueue *queue);