2007-03-22 18:12:32 +00:00
|
|
|
#ifndef SX_SLENTRY_H_
|
|
|
|
#define SX_SLENTRY_H_
|
|
|
|
|
2015-08-30 15:21:17 +03:00
|
|
|
#if HAVE_SYS_QUEUE_H && HAVE_STAILQ_IN_SYS_QUEUE
|
2015-07-12 17:31:09 +03:00
|
|
|
#include <sys/queue.h>
|
|
|
|
#else
|
|
|
|
#include "sys_queue.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_SYS_TREE_H
|
|
|
|
#include <sys/tree.h>
|
|
|
|
#else
|
|
|
|
#include "sys_tree.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct sx_slentry {
|
|
|
|
STAILQ_ENTRY(sx_slentry) next;
|
2007-03-22 18:12:32 +00:00
|
|
|
char* text;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct sx_slentry* sx_slentry_new(char* text);
|
|
|
|
|
2015-07-12 17:31:09 +03:00
|
|
|
struct sx_tentry {
|
|
|
|
RB_ENTRY(sx_tentry) entry;
|
|
|
|
char* text;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct sx_tentry* sx_tentry_new(char* text);
|
|
|
|
|
2007-03-22 18:12:32 +00:00
|
|
|
#endif
|