-rw-r--r-- | object-index.h | 19 |
diff --git a/object-index.h b/object-index.h index dd19c3f6..a2bc0a73 100644 --- a/object-index.h +++ b/object-index.h @@ -7,21 +7,12 @@ __BEGIN_DECLS #include "lua.h" -/* We have currently just one class of objects that have a unique ID, windows. - At some moments during development this machinary was also used for plots. - Because we have just one object type that get an id the code could be - potentially simplified. */ -enum object_class_e { - OBJECT_WINDOW = 0, - /* OBJECT_PLOT, */ -}; - extern void object_index_prepare (lua_State *L); -extern int object_index_add (lua_State *L, int obj_class, int index); -extern void object_index_get (lua_State *L, int obj_class, int id); -extern void object_index_remove (lua_State *L, int obj_class, int id); -extern void object_index_apply_all (lua_State *L, int obj_class, lua_CFunction f); -extern int object_index_count (lua_State *L, int obj_class); +extern int object_index_add (lua_State *L, int index); +extern void object_index_get (lua_State *L, int id); +extern void object_index_remove (lua_State *L, int id); +extern void object_index_apply_all (lua_State *L, lua_CFunction f); +extern int object_index_count (lua_State *L); __END_DECLS |