Migrated auth_payload to INIT/METHOD macros

This commit is contained in:
Martin Willi
2011-01-05 16:45:50 +01:00
parent 64293410b7
commit 9c0ccf5e26
2 changed files with 68 additions and 136 deletions
+2 -15
View File
@@ -62,27 +62,14 @@ struct auth_payload_t {
/**
* Set the AUTH data.
*
* Data gets cloned.
*
* @param data AUTH data as chunk_t
* @param data AUTH data as chunk_t, gets cloned
*/
void (*set_data) (auth_payload_t *this, chunk_t data);
/**
* Get the AUTH data.
*
* Returned data are a copy of the internal one.
*
* @return AUTH data as chunk_t
*/
chunk_t (*get_data_clone) (auth_payload_t *this);
/**
* Get the AUTH data.
*
* Returned data are NOT copied
*
* @return AUTH data as chunk_t
* @return AUTH data as chunk_t, internal data
*/
chunk_t (*get_data) (auth_payload_t *this);