Implemented rr_set_t interface

This commit is contained in:
Reto Guadagnini
2013-02-19 11:57:21 +01:00
committed by Tobias Brunner
parent 4a335a2164
commit 62ea67e700
3 changed files with 113 additions and 1 deletions
+12
View File
@@ -25,6 +25,7 @@ typedef struct rr_set_t rr_set_t;
#include <library.h>
#include <collections/enumerator.h>
#include <collections/linked_list.h>
/**
* A set of DNS Resource Records.
@@ -64,4 +65,15 @@ struct rr_set_t {
void (*destroy) (rr_set_t *this);
};
/**
* Create an rr_set instance.
*
* @param list_of_rr list of Resource Records which form this RRset
* @param list_of_rrsig list of the signatures (RRSIGs) of the
* Resource Records of this set
* @return Resource Record set, NULL on failure
*/
rr_set_t *rr_set_create(linked_list_t *list_of_rr,
linked_list_t *list_of_rrsig);
#endif /** RR_SET_H_ @}*/