make DHCP debug messages consistent
[strongswan.git] / src / libcharon / plugins / dhcp / dhcp_transaction.h
index e205720..19c163f 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <utils/host.h>
 #include <utils/identification.h>
 
 #include <utils/host.h>
 #include <utils/identification.h>
+#include <attributes/attributes.h>
 
 typedef struct dhcp_transaction_t dhcp_transaction_t;
 
 
 typedef struct dhcp_transaction_t dhcp_transaction_t;
 
@@ -74,6 +75,22 @@ struct dhcp_transaction_t {
        host_t* (*get_server)(dhcp_transaction_t *this);
 
        /**
        host_t* (*get_server)(dhcp_transaction_t *this);
 
        /**
+        * An an additional attribute to serve to peer.
+        *
+        * @param type          type of attribute
+        * @param data          attribute data
+        */
+       void (*add_attribute)(dhcp_transaction_t *this,
+                                                 configuration_attribute_type_t type, chunk_t data);
+
+       /**
+        * Create an enumerator over added attributes.
+        *
+        * @return                      enumerator over (configuration_attribute_t, chunk_t)
+        */
+       enumerator_t* (*create_attribute_enumerator)(dhcp_transaction_t *this);
+
+       /**
         * Destroy a dhcp_transaction_t.
         */
        void (*destroy)(dhcp_transaction_t *this);
         * Destroy a dhcp_transaction_t.
         */
        void (*destroy)(dhcp_transaction_t *this);