12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef HEADER_CURL_SPLAY_H
- #define HEADER_CURL_SPLAY_H
- #include "curl_setup.h"
- #include "timeval.h"
- struct Curl_tree {
- struct Curl_tree *smaller;
- struct Curl_tree *larger;
- struct Curl_tree *samen;
- struct Curl_tree *samep;
- struct curltime key;
- void *ptr;
- };
- struct Curl_tree *Curl_splay(struct curltime i,
- struct Curl_tree *t);
- struct Curl_tree *Curl_splayinsert(struct curltime key,
- struct Curl_tree *t,
- struct Curl_tree *newnode);
- struct Curl_tree *Curl_splaygetbest(struct curltime key,
- struct Curl_tree *t,
- struct Curl_tree **removed);
- int Curl_splayremove(struct Curl_tree *t,
- struct Curl_tree *removenode,
- struct Curl_tree **newroot);
- void Curl_splayset(struct Curl_tree *node, void *payload);
- void *Curl_splayget(struct Curl_tree *node);
- #endif
|