/usr/include/schroedinger-1.0/schroedinger/schroqueue.h is in libschroedinger-dev 1.0.11-2.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #ifndef __SCHRO_QUEUE_H__
#define __SCHRO_QUEUE_H__
#include <schroedinger/schroutils.h>
SCHRO_BEGIN_DECLS
typedef struct _SchroQueue SchroQueue;
typedef struct _SchroQueueElement SchroQueueElement;
typedef void (*SchroQueueFreeFunc)(void *data, SchroPictureNumber number);
struct _SchroQueueElement {
void *data;
SchroPictureNumber picture_number;
};
struct _SchroQueue {
int size;
int n;
SchroQueueElement *elements;
SchroQueueFreeFunc free;
};
#ifdef SCHRO_ENABLE_UNSTABLE_API
SchroQueue *schro_queue_new (int size, SchroQueueFreeFunc func);
void schro_queue_free (SchroQueue *queue);
void schro_queue_add (SchroQueue *queue, void *element,
SchroPictureNumber picture_number);
void *schro_queue_find (SchroQueue *queue, SchroPictureNumber picture_number);
void schro_queue_delete (SchroQueue *queue, SchroPictureNumber picture_number);
void *schro_queue_remove (SchroQueue *queue, SchroPictureNumber picture_number);
void schro_queue_clear (SchroQueue *queue);
void schro_queue_pop (SchroQueue *queue);
void * schro_queue_pull (SchroQueue *queue);
void *schro_queue_peek (SchroQueue *queue);
int schro_queue_is_full (SchroQueue *queue);
int schro_queue_is_empty (SchroQueue *queue);
int schro_queue_slots_available (SchroQueue *queue);
#endif
SCHRO_END_DECLS
#endif
|