aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-02-06 14:30:00 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-02-06 14:30:00 +0100
commit215032563755ba48d4e871b82c9c6697611726f8 (patch)
tree51123c26b3d1418d0d400593438e23da48a8b4c8 /src/include
parentd322de96b95a7afad7f5bd255bf70642840a3778 (diff)
downloadgnunet-215032563755ba48d4e871b82c9c6697611726f8.tar.gz
gnunet-215032563755ba48d4e871b82c9c6697611726f8.zip
-simlify and correct tombstone logic
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_gnsrecord_lib.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h
index 7d30055fc..fd630b987 100644
--- a/src/include/gnunet_gnsrecord_lib.h
+++ b/src/include/gnunet_gnsrecord_lib.h
@@ -631,11 +631,13 @@ GNUNET_GNSRECORD_records_cmp (const struct GNUNET_GNSRECORD_Data *a,
631 * 631 *
632 * @param rd_count number of records given in @a rd 632 * @param rd_count number of records given in @a rd
633 * @param rd array of records 633 * @param rd array of records
634 * @param min minimum expiration time
634 * @return absolute expiration time 635 * @return absolute expiration time
635 */ 636 */
636struct GNUNET_TIME_Absolute 637struct GNUNET_TIME_Absolute
637GNUNET_GNSRECORD_record_get_expiration_time ( 638GNUNET_GNSRECORD_record_get_expiration_time (unsigned int rd_count,
638 unsigned int rd_count, const struct GNUNET_GNSRECORD_Data *rd); 639 const struct GNUNET_GNSRECORD_Data *rd,
640 struct GNUNET_TIME_Absolute min);
639 641
640 642
641/** 643/**
@@ -724,6 +726,22 @@ GNUNET_GNSRECORD_is_zonekey_type (uint32_t type);
724enum GNUNET_GenericReturnValue 726enum GNUNET_GenericReturnValue
725GNUNET_GNSRECORD_is_critical (uint32_t type); 727GNUNET_GNSRECORD_is_critical (uint32_t type);
726 728
729/**
730 * Convert namestore records from the internal format to that
731 * suitable for publication (removes private records, converts
732 * to absolute expiration time).
733 *
734 * @param rd input records
735 * @param rd_count size of the @a rd and @a rd_public arrays
736 * @param rd_public where to write the converted records
737 * @param expiry the expiration of the block
738 * @return number of records written to @a rd_public
739 */
740unsigned int
741GNUNET_GNSRECORD_convert_records_for_export (const struct GNUNET_GNSRECORD_Data *rd,
742 unsigned int rd_count,
743 struct GNUNET_GNSRECORD_Data *rd_public,
744 struct GNUNET_TIME_Absolute *expiry);
727 745
728#if 0 /* keep Emacsens' auto-indent happy */ 746#if 0 /* keep Emacsens' auto-indent happy */
729{ 747{