aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-06 00:32:36 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-06 00:32:36 +0200
commit90e29258a5339d232ea1b22f3f83d61701b52358 (patch)
tree1dcdab00bbbafdc3a30c82c390f66af0d82ecba2 /src/include
parente13828526819ba1b37877950b8cef75a4c7787b4 (diff)
downloadgnunet-90e29258a5339d232ea1b22f3f83d61701b52358.tar.gz
gnunet-90e29258a5339d232ea1b22f3f83d61701b52358.zip
changes for AGPL handling
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_mq_lib.h18
-rw-r--r--src/include/gnunet_protocols.h17
-rw-r--r--src/include/gnunet_util_lib.h8
3 files changed, 42 insertions, 1 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h
index fe699c48f..daf1869fb 100644
--- a/src/include/gnunet_mq_lib.h
+++ b/src/include/gnunet_mq_lib.h
@@ -340,6 +340,24 @@ GNUNET_MQ_copy_handlers (const struct GNUNET_MQ_MessageHandler *handlers);
340 340
341 341
342/** 342/**
343 * Copy an array of handlers, appending AGPL handler.
344 *
345 * Useful if the array has been delared in local memory and needs to be
346 * persisted for future use.
347 *
348 * @param handlers Array of handlers to be copied. Can be NULL (nothing done).
349 * @param agpl_handler function to call for AGPL handling
350 * @param agpl_cls closure for @a agpl_handler
351 * @return A newly allocated array of handlers.
352 * Needs to be freed with #GNUNET_free.
353 */
354struct GNUNET_MQ_MessageHandler *
355GNUNET_MQ_copy_handlers2 (const struct GNUNET_MQ_MessageHandler *handlers,
356 GNUNET_MQ_MessageCallback agpl_handler,
357 void *agpl_cls);
358
359
360/**
343 * Count the handlers in a handler array. 361 * Count the handlers in a handler array.
344 * 362 *
345 * @param handlers Array of handlers to be counted. 363 * @param handlers Array of handlers to be counted.
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 7040f2cbf..60dbeeb78 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2001--2015 GNUnet e.V. 3 Copyright (C) 2001--2018 GNUnet e.V.
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -86,6 +86,21 @@ extern "C"
86#define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 5 86#define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 5
87 87
88/******************************************************************************* 88/*******************************************************************************
89 * AGPL source code download
90 * *****************************************************************************/
91
92/**
93 * Message to request source code link.
94 */
95#define GNUNET_MESSAGE_TYPE_REQUEST_AGPL 6
96
97/**
98 * Source code link.
99 */
100#define GNUNET_MESSAGE_TYPE_RESPONSE_AGPL 7
101
102
103/*******************************************************************************
89 * ARM message types 104 * ARM message types
90 ******************************************************************************/ 105 ******************************************************************************/
91 106
diff --git a/src/include/gnunet_util_lib.h b/src/include/gnunet_util_lib.h
index a9bd6c33f..e82e6caee 100644
--- a/src/include/gnunet_util_lib.h
+++ b/src/include/gnunet_util_lib.h
@@ -52,6 +52,14 @@ extern "C"
52 */ 52 */
53#define GNUNET_MIN_MESSAGE_SIZE sizeof (struct GNUNET_MessageHeader) 53#define GNUNET_MIN_MESSAGE_SIZE sizeof (struct GNUNET_MessageHeader)
54 54
55/**
56 * NOTE: You MUST adjust this URL to point to the location of a
57 * publicly accessible repository (or TGZ) containing the sources of
58 * THIS release. Otherwise, you are violating the Affero GPL if you make
59 * this service available to anyone but yourself.
60 */
61#define GNUNET_AGPL_URL "https://gnunet.org/git/gnunet.git#" PACKAGE_VERSION;
62
55 63
56#include "gnunet_crypto_lib.h" 64#include "gnunet_crypto_lib.h"
57#include "gnunet_bandwidth_lib.h" 65#include "gnunet_bandwidth_lib.h"