19 #ifndef MIRAL_APPLICATION_AUTHORIZER_H 20 #define MIRAL_APPLICATION_AUTHORIZER_H 24 #include <sys/types.h> 27 namespace mir {
class Server; }
28 namespace mir {
namespace frontend {
class SessionCredentials; } }
44 mir::frontend::SessionCredentials
const& creds;
70 #if MIRAL_VERSION >= MIR_VERSION_NUMBER(2, 0, 0) 71 #error "We've presumably broken ABI - please roll this interface into ApplicationAuthorizer" 81 void operator()(mir::Server& server);
82 auto the_application_authorizer()
const -> std::shared_ptr<ApplicationAuthorizer>;
86 std::shared_ptr<Self>
self;
89 template<
typename Policy>
93 template<
typename ...Args>
98 {
return std::static_pointer_cast<Policy>(the_application_authorizer()); }
102 #endif //MIRAL_APPLICATION_AUTHORIZER_H Definition: connection.h:26
Definition: application_authorizer.h:47
auto the_custom_application_authorizer() const -> std::shared_ptr< Policy >
Definition: application_authorizer.h:97
SetApplicationAuthorizer(Args const &...args)
Definition: application_authorizer.h:94
Definition: application_authorizer.h:64
Definition: application_authorizer.h:75
Definition: application_authorizer.h:90
Definition: application_authorizer.h:32
Mir Abstraction Layer.
Definition: active_outputs.h:27