author | francesco-ST <francesco.abbate@st.com> | 2010年12月28日 16:52:42 +0100 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年12月28日 16:52:42 +0100 |
commit | ab7fc91161b8cb493b418bfdd2871e45c4537a26 (patch) | |
tree | ea400f746489d587d153f0b6b6677c6a17bf916f /object-index.h | |
parent | 978986bb98f1ae622be3f430f4e729fbb598afb8 (diff) | |
download | gsl-shell-ab7fc91161b8cb493b418bfdd2871e45c4537a26.tar.gz |
-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 |