aboutsummaryrefslogtreecommitdiffstats
path: root/libibex/ibex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libibex/ibex_internal.h')
-rw-r--r--libibex/ibex_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libibex/ibex_internal.h b/libibex/ibex_internal.h
index d8e5e28296..bb15ebc1f7 100644
--- a/libibex/ibex_internal.h
+++ b/libibex/ibex_internal.h
@@ -27,6 +27,11 @@
#include "wordindex.h"
struct ibex {
+ struct ibex *next; /* for list of open ibex's */
+ struct ibex *prev;
+
+ int usecount;
+
char *name;
int flags;
int mode;
@@ -41,6 +46,8 @@ struct ibex {
};
+#define IBEX_OPEN_THRESHOLD (5)
+
#ifdef ENABLE_THREADS
/*#define IBEX_LOCK(ib) (printf(__FILE__ "%d: %s: locking ibex\n", __LINE__, __FUNCTION__), g_mutex_lock(ib->lock))
#define IBEX_UNLOCK(ib) (printf(__FILE__ "%d: %s: unlocking ibex\n", __LINE__, __FUNCTION__), g_mutex_unlock(ib->lock))*/