static JSValueRef get_can_suspend_cb(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception) { return JSValueMakeBoolean(context, lightdm_get_can_suspend()); }
JS_EXPORT_API gboolean greeter_get_can_suspend () { return lightdm_get_can_suspend (); }