diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-14 13:51:49 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-14 13:51:49 +0000 |
commit | f561c205e8d631d165a602ff644a7fe02b8f3e1e (patch) | |
tree | bd33c387e302950fc768b97bd80a0ebed7626b05 /Source/charon/payloads/transform_attribute.h | |
parent | 353c317a1507ed24cf23f7ba8b6ab8e310c4ce95 (diff) | |
download | strongswan-f561c205e8d631d165a602ff644a7fe02b8f3e1e.tar.bz2 strongswan-f561c205e8d631d165a602ff644a7fe02b8f3e1e.tar.xz |
- class transform_attribute fully tested and written
- generating of this type works!
Diffstat (limited to 'Source/charon/payloads/transform_attribute.h')
-rw-r--r-- | Source/charon/payloads/transform_attribute.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Source/charon/payloads/transform_attribute.h b/Source/charon/payloads/transform_attribute.h index 8bfb4fd13..c0355a424 100644 --- a/Source/charon/payloads/transform_attribute.h +++ b/Source/charon/payloads/transform_attribute.h @@ -41,6 +41,46 @@ struct transform_attribute_s { * implements payload_t interface */ payload_t payload_interface; + + /** + * @brief Returns the currently set value of the attribute + * + * @warning Returned data are not copied + * + * @param this calling transform_attribute_t object + * @return chunk_t pointing to the value + */ + chunk_t (*get_value) (transform_attribute_t *this); + + /** + * @brief Sets the value of the attribute. + * + * @warning Value is getting copied + * + * @param this calling transform_attribute_t object + * @param value chunk_t pointing to the value to set + * @return + * - SUCCESS or + * - OUT_OF_RES + */ + status_t (*set_value) (transform_attribute_t *this, chunk_t value); + + /** + * @brief Sets the type of the attribute. + * + * @param this calling transform_attribute_t object + * @param type type to set (most significant bit is set to zero) + * @return SUCCESS + */ + status_t (*set_attribute_type) (transform_attribute_t *this, u_int16_t type); + + /** + * @brief get the type of the attribute. + * + * @param this calling transform_attribute_t object + * @return type of the value + */ + u_int16_t (*get_attribute_type) (transform_attribute_t *this); /** * @brief Destroys an transform_attribute_t object. |