Go to the documentation of this file.00001
00014 #ifndef HSQUEUE_H
00015 #define HSQUEUE_H
00016
00017 #include "hstructures.h"
00018
00020 #define HSQUEUE_MAX_QUEUES 1000
00021
00022
00028 int hsqueue_size(struct hsqueue* element);
00029
00038 int hsqueue_get_state(struct hsqueue* queue);
00039
00045 struct hsqueue* hsqueue_get_prev(struct hsqueue* element);
00046
00052 struct hsqueue* hsqueue_get_next(struct hsqueue* element);
00053
00058 struct hsqueue* hsqueue_create();
00059
00065 int hsqueue_remove(struct hsqueue* element);
00066
00072 struct hprocess* hsqueue_get_first_process(struct hsqueue* queue);
00073
00079 struct hprocess* hsqueue_get_last_process(struct hsqueue* queue);
00080
00087 int hsqueue_enqueue_process(struct hsqueue* queue, struct hprocess* process);
00088
00094 struct hprocess* hsqueue_dequeue_process(struct hsqueue* queue);
00095
00105 int hsqueue_remove_process(struct hsqueue* queue, struct hprocess* process);
00106
00112 int hsqueue_get_parent_list(struct hsqueue* queue);
00113
00133 int hsqueue_register_signal(int signal, int (*function)());
00134
00135 #endif
00136