if (scripting->configured)
luaL_error(L, "refuse to import '%s' after configuration phase",table);
- imp = (scripting_import *)mrp_lua_create_object(L, IMPORT_CLASS, table);
+ imp = (scripting_import *)mrp_lua_create_object(L, IMPORT_CLASS, table,0);
imp->userdata = u;
imp->table = pa_xstrdup(table);
make_id(id, sizeof(id), "%s_%d", node->amname, node->index);
- if ((sn = (scripting_node *)mrp_lua_create_object(L, NODE_CLASS, id))) {
+ if ((sn = (scripting_node *)mrp_lua_create_object(L, NODE_CLASS, id,0))) {
sn->userdata = u;
sn->id = pa_xstrdup(id);
sn->node = node;
pa_assert_se((L = scripting->L));
if ((sn = node->scripting)) {
- mrp_lua_destroy_object(L, sn->id, sn);
+ mrp_lua_destroy_object(L, sn->id,0, sn);
sn->node = NULL;
node->scripting = NULL;
}
}
res = (scripting_resource *)mrp_lua_create_object(L, RTGROUP_CLASS,
- "definition");
+ "definition",0);
res->userdata = u;
res->name = name;
make_id(id,sizeof(id), "%s_%sput", name, (type == mir_input) ? "in":"out");
- rtgs = (scripting_rtgroup *)mrp_lua_create_object(L, RTGROUP_CLASS, id);
+ rtgs = (scripting_rtgroup *)mrp_lua_create_object(L, RTGROUP_CLASS, id,0);
rtg = mir_router_create_rtgroup(u, type, pa_xstrdup(name),
rtgroup_accept, rtgroup_compare);
mir_output,
route->output);
- ac = (scripting_apclass *)mrp_lua_create_object(L,APPLICATION_CLASS,name);
+ ac = (scripting_apclass *)mrp_lua_create_object(L, APPLICATION_CLASS,
+ name, 0);
if (!ir || !or || !ac)
luaL_error(L, "failed to create application class '%s'", name);
make_id(id, sizeof(id), "%s", name);
(VOLLIM_CLASS)->userdata_size = sizeof(scripting_vollim) + arglgh;
- vlim = (scripting_vollim *)mrp_lua_create_object(L, VOLLIM_CLASS, id);
+ vlim = (scripting_vollim *)mrp_lua_create_object(L, VOLLIM_CLASS, id,0);
(VOLLIM_CLASS)->userdata_size = sizeof(scripting_vollim);
vlim->userdata = u;