Go to the documentation of this file.00001
00015 #ifndef HMQUEUE_H
00016 #define HMQUEUE_H
00017
00019 enum hmqueue_mode {
00020 HMQ_CREATE,
00021 HMQ_CONNECT
00022 };
00023
00029 struct hmqueue* hmqueue_get_prev(struct hmqueue* element);
00030
00036 struct hmqueue* hmqueue_get_next(struct hmqueue* element);
00037
00043 int hmqueue_get_key(struct hmqueue* element);
00044
00050 int hmqueue_get_id(struct hmqueue* element);
00051
00056 int hmqueue_size();
00057
00063 int hmqueue_get_id_by_key(int key);
00064
00070 struct hmqueue* hmqueue_get(int key);
00071
00081 struct hmqueue* hmqueue_add(int key, enum hmqueue_mode mode);
00082
00088 int hmqueue_remove(struct hmqueue* element);
00089
00095 int hmqueue_remove_by_key(int key);
00096
00101 int hmqueue_remove_all();
00102
00107 struct hmqueue* hmqueue_get_first();
00108
00113 struct hmqueue* hmqueue_get_last();
00114
00119 int hmqueue_get_daemonkey();
00120
00121 #endif
00122