diff options
author | t3sserakt <t3ss@posteo.de> | 2023-10-20 20:18:18 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2023-10-20 20:18:18 +0200 |
commit | 692fd292fcb8096f7c8260046e53046f41a666d1 (patch) | |
tree | 9e67ad32e6cfc99f8bbe424f882688bd48d52373 /src/service/rest/openid_plugin.h | |
parent | 9376034c29f27f7b7baff17c767b0c68e7ced37c (diff) | |
parent | 9862fc36d1c97aaed13c8aa17ebadfca420a5943 (diff) | |
download | gnunet-692fd292fcb8096f7c8260046e53046f41a666d1.tar.gz gnunet-692fd292fcb8096f7c8260046e53046f41a666d1.zip |
Merge branch 'master' of ssh://git.gnunet.org/gnunet
Diffstat (limited to 'src/service/rest/openid_plugin.h')
-rw-r--r-- | src/service/rest/openid_plugin.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/service/rest/openid_plugin.h b/src/service/rest/openid_plugin.h new file mode 100644 index 000000000..65545ac66 --- /dev/null +++ b/src/service/rest/openid_plugin.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #include "gnunet_rest_plugin.h" | ||
2 | /** | ||
3 | * Function processing the REST call | ||
4 | * | ||
5 | * @param method HTTP method | ||
6 | * @param url URL of the HTTP request | ||
7 | * @param data body of the HTTP request (optional) | ||
8 | * @param data_size length of the body | ||
9 | * @param proc callback function for the result | ||
10 | * @param proc_cls closure for @a proc | ||
11 | * @return #GNUNET_OK if request accepted | ||
12 | */ | ||
13 | enum GNUNET_GenericReturnValue | ||
14 | REST_openid_process_request (void *plugin, | ||
15 | struct GNUNET_REST_RequestHandle *conndata_handle, | ||
16 | GNUNET_REST_ResultProcessor proc, | ||
17 | void *proc_cls); | ||
18 | |||
19 | /** | ||
20 | * Entry point for the plugin. | ||
21 | * | ||
22 | * @param cls the "struct GNUNET_NAMESTORE_PluginEnvironment*" | ||
23 | * @return NULL on error, otherwise the plugin context | ||
24 | */ | ||
25 | void* | ||
26 | REST_openid_init (const struct GNUNET_CONFIGURATION_Handle *c); | ||
27 | |||
28 | |||
29 | /** | ||
30 | * Exit point from the plugin. | ||
31 | * | ||
32 | * @param cls the plugin context (as returned by "init") | ||
33 | * @return always NULL | ||
34 | */ | ||
35 | void | ||
36 | REST_openid_done (struct GNUNET_REST_Plugin *api); | ||