aboutsummaryrefslogtreecommitdiff
path: root/eng/src/vtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'eng/src/vtable.c')
-rw-r--r--eng/src/vtable.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/eng/src/vtable.c b/eng/src/vtable.c
new file mode 100644
index 0000000..daad451
--- /dev/null
+++ b/eng/src/vtable.c
@@ -0,0 +1,18 @@
+#include "vtable.h"
+
+Vtable *___vtables = NULL;
+unsigned long ___vtable_i = 0;
+
+Vtable *
+vtable_get(const char *name)
+{
+ if (name == NULL) {
+ plog("name is NULL");
+ return NULL;
+ }
+
+ foreach (e, ___vtables)
+ if (strcasecmp(e->name, name) == 0)
+ return e;
+ return NULL;
+}