int32_t index;
MRP_ASSERT(code, "invald argument");
-
+
if (!L && !(L = mrp_lua_get_lua_state())) {
mrp_log_error("can't create scripting code %d: LUA is "
"not initialized", code->id);
mrp_debug("destroy scripting code %d", code->id);
sc->code = NULL;
-
+
mrp_lua_destroy_object(L, NULL,sc->index, code->scripting_data);
-
+
code->scripting_data = NULL;
}
}
scripting_input_t *si;
MRP_ASSERT(inp, "invald argument");
-
+
if (!L && !(L = mrp_lua_get_lua_state())) {
mrp_log_error("can't create scripting input %d: LUA is "
"not initialized", inp->id);
mrp_debug("destroy scripting input %d", inp->id);
si->inp = NULL;
-
+
mrp_lua_destroy_object(L, NULL,inp->id+1, inp->scripting_data);
-
+
inp->scripting_data = NULL;
}
}
case OUTPUTNAME:
lua_pushstring(L, layer->outputname ? layer->outputname : "");
break;
-
+
case VISIBLE:
lua_pushboolean(L, layer->visible);
break;
mrp_wayland_t *wl;
MRP_ASSERT(out && out->interface && out->interface->wl, "invald argument");
-
+
wl = out->interface->wl;
-
+
if (!wl->create_scripting_outputs)
o = NULL;
else if (out->scripting_data)
scripting_window_t *w;
MRP_ASSERT(win, "invald argument");
-
+
if (!L && !(L = mrp_lua_get_lua_state())) {
mrp_log_error("can't create scripting window %d: LUA is "
"not initialized", win->surfaceid);
mrp_debug("destroy scripting window map");
swm->map = NULL;
-
+
mrp_lua_destroy_object(L, NULL,0, swm);
-
+
map->scripting_data = NULL;
}
}