static JSValueRef get_can_restart_cb(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception) { return JSValueMakeBoolean(context, lightdm_get_can_restart()); }
JS_EXPORT_API gboolean greeter_get_can_restart () { return lightdm_get_can_restart (); }