You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.0 KiB

  1. From c776664d488028f844ae6045e60f693a8624bfac Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <daniel@makrotopia.org>
  3. Date: Thu, 28 Feb 2019 16:06:06 +0100
  4. Subject: [PATCH] reclaim-attribute: include header in dist sources
  5. ---
  6. src/reclaim-attribute/Makefile.am | 1 +
  7. 1 file changed, 1 insertion(+)
  8. --- a/src/reclaim-attribute/Makefile.am
  9. +++ b/src/reclaim-attribute/Makefile.am
  10. @@ -20,6 +20,7 @@ lib_LTLIBRARIES = \
  11. libgnunetreclaimattribute.la
  12. libgnunetreclaimattribute_la_SOURCES = \
  13. + reclaim_attribute.h \
  14. reclaim_attribute.c
  15. libgnunetreclaimattribute_la_LIBADD = \
  16. $(top_builddir)/src/util/libgnunetutil.la \
  17. --- /dev/null
  18. +++ b/src/reclaim-attribute/reclaim_attribute.h
  19. @@ -0,0 +1,56 @@
  20. +/*
  21. + This file is part of GNUnet.
  22. + Copyright (C) 2012-2015 GNUnet e.V.
  23. +
  24. + GNUnet is free software: you can redistribute it and/or modify it
  25. + under the terms of the GNU Affero General Public License as published
  26. + by the Free Software Foundation, either version 3 of the License,
  27. + or (at your option) any later version.
  28. +
  29. + GNUnet is distributed in the hope that it will be useful, but
  30. + WITHOUT ANY WARRANTY; without even the implied warranty of
  31. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  32. + Affero General Public License for more details.
  33. +
  34. + You should have received a copy of the GNU Affero General Public License
  35. + along with this program. If not, see <http://www.gnu.org/licenses/>.
  36. +
  37. + SPDX-License-Identifier: AGPL3.0-or-later
  38. + */
  39. +/**
  40. + * @author Martin Schanzenbach
  41. + * @file reclaim-attribute/reclaim_attribute.h
  42. + * @brief GNUnet reclaim identity attributes
  43. + *
  44. + */
  45. +#ifndef RECLAIM_ATTRIBUTE_H
  46. +#define RECLAIM_ATTRIBUTE_H
  47. +
  48. +#include "gnunet_reclaim_service.h"
  49. +
  50. +struct Attribute
  51. +{
  52. + /**
  53. + * Attribute type
  54. + */
  55. + uint32_t attribute_type;
  56. +
  57. + /**
  58. + * Attribute version
  59. + */
  60. + uint32_t attribute_version;
  61. +
  62. + /**
  63. + * Name length
  64. + */
  65. + uint32_t name_len;
  66. +
  67. + /**
  68. + * Data size
  69. + */
  70. + uint32_t data_size;
  71. +
  72. + //followed by data_size Attribute value data
  73. +};
  74. +
  75. +#endif