Пример #1
0
void
js_setting_group_flush_from_plugin(JSContext *cx, js_plugin_t *jsp)
{
  js_setting_group_t *jsg;
  while((jsg = LIST_FIRST(&jsp->jsp_setting_groups)) != NULL)
    jsg_destroy(cx, jsg);
}
Пример #2
0
static JSBool 
js_destroy(JSContext *cx, JSObject *obj, uintN argc, 
	   jsval *argv, jsval *rval)
{
  js_setting_group_t *jsg = JS_GetPrivate(cx, obj);
  jsg_destroy(cx, jsg);
  return JS_TRUE;
}
Пример #3
0
void
js_setting_group_flush_from_list(JSContext *cx,
                                 struct js_setting_group_list *list)
{
  js_setting_group_t *jsg;
  while((jsg = LIST_FIRST(list)) != NULL)
    jsg_destroy(cx, jsg);
}