aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_os_lib.h
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2020-05-27 15:01:30 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-27 22:37:08 +0200
commitcf4608196bc02093409dbf6b7a24e6ed08c36f76 (patch)
tree46c2ecc852810e35d9d5eabcfcb52620e06aaa3f /src/include/gnunet_os_lib.h
parent3a966c83d32db67d0e9cb23675f28b7233280aeb (diff)
downloadgnunet-cf4608196bc02093409dbf6b7a24e6ed08c36f76.tar.gz
gnunet-cf4608196bc02093409dbf6b7a24e6ed08c36f76.zip
Make REQUEST_AGPL messages configurable and add handler by default
This makes two changes: * Add a field to `struct GNUNET_OS_ProjectData' containing a URL (as a string) pointing to the source code of the application. * If the field is not NULL, add a handler for the REQUEST_AGPL messages sending the specified URL to the client. The handler is added both in client-service communications (i.e. local services that don't make requests to other peers in the network) and in peer-peer communications (CADET.) This way, any client (local or remote with CADET) can request the source code location using a standardized mechanism instead of writing ad-hoc solutions (unless the service/peer explicitly specifies a NULL pointer.) Signed-off-by: Christian Grothoff <christian@grothoff.org>
Diffstat (limited to 'src/include/gnunet_os_lib.h')
-rw-r--r--src/include/gnunet_os_lib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h
index a6188c1ca..b583cc493 100644
--- a/src/include/gnunet_os_lib.h
+++ b/src/include/gnunet_os_lib.h
@@ -287,6 +287,14 @@ struct GNUNET_OS_ProjectData
287 * If this field is NULL, the path is automatically inferred. 287 * If this field is NULL, the path is automatically inferred.
288 */ 288 */
289 char *gettext_path; 289 char *gettext_path;
290
291 /**
292 * URL pointing to the source code of the application. Required for AGPL.
293 * Setting this to NULL disables the built-in mechanism, but you must
294 * provide it in some other way. If non-NULL, message type 1 and 2 are
295 * reserved.
296 */
297 char *agpl_url;
290}; 298};
291 299
292 300