diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-16 11:36:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-16 11:36:14 +0200 |
commit | b2d9f5936b7e867180199771c9e47c6d95ec8b8a (patch) | |
tree | cfda3db1cf0a6921f88d20925ed74f2cd427fcd6 /src/include/anastasis_authorization_plugin.h | |
parent | 7bed96f8e479af98db1a8a0c71b7c2ff2dc2b564 (diff) | |
download | anastasis-b2d9f5936b7e867180199771c9e47c6d95ec8b8a.tar.gz anastasis-b2d9f5936b7e867180199771c9e47c6d95ec8b8a.tar.bz2 anastasis-b2d9f5936b7e867180199771c9e47c6d95ec8b8a.zip |
-pass db handle to auth plugins
Diffstat (limited to 'src/include/anastasis_authorization_plugin.h')
-rw-r--r-- | src/include/anastasis_authorization_plugin.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/anastasis_authorization_plugin.h b/src/include/anastasis_authorization_plugin.h index a1006a7..55f6369 100644 --- a/src/include/anastasis_authorization_plugin.h +++ b/src/include/anastasis_authorization_plugin.h @@ -86,6 +86,24 @@ enum ANASTASIS_AUTHORIZATION_Result /** + * Argument passed to the "init" function of each + * plugin. + */ +struct ANASTASIS_AuthorizationContext +{ + /** + * Database handle. + */ + struct ANASTASIS_DatabasePlugin *db; + + /** + * Configuration to use. + */ + const struct GNUNET_CONFIGURATION_Handle *cfg; +}; + + +/** * Handle to interact with a authorization backend. */ struct ANASTASIS_AuthorizationPlugin |