static JSValueRef get_can_shutdown_cb(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception) { return JSValueMakeBoolean(context, lightdm_get_can_shutdown()); }
JS_EXPORT_API gboolean greeter_get_can_shutdown () { return lightdm_get_can_shutdown (); }