- source code fully documented
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @file configuration.c
|
* @file configuration.c
|
||||||
*
|
*
|
||||||
* @brief class configuration_t.
|
* @brief Configuration class used to store IKE_SA-configurations.
|
||||||
*
|
*
|
||||||
*
|
* Object of this type represents a configuration for an IKE_SA and its child_sa's.
|
||||||
* Object of this type represents a configuration for an IKE_SA and its child_sa's
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -33,24 +32,24 @@
|
|||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* private data of an configuration_t object
|
* Private data of an configuration_t object
|
||||||
*/
|
*/
|
||||||
typedef struct private_configuration_s private_configuration_t;
|
typedef struct private_configuration_s private_configuration_t;
|
||||||
|
|
||||||
struct private_configuration_s {
|
struct private_configuration_s {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* public part of a configuration_t object
|
* Public part of a configuration_t object
|
||||||
*/
|
*/
|
||||||
configuration_t public;
|
configuration_t public;
|
||||||
|
|
||||||
|
|
||||||
/* private values */
|
/* Private values */
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief implements function destroy of configuration_t
|
* Implements function destroy of configuration_t.
|
||||||
|
* See #configuration_s.destroy for description.
|
||||||
*/
|
*/
|
||||||
static status_t destroy (private_configuration_t *this)
|
static status_t destroy (private_configuration_t *this)
|
||||||
{
|
{
|
||||||
@@ -63,7 +62,7 @@ static status_t destroy (private_configuration_t *this)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* described in header-file
|
* Described in header-file
|
||||||
*/
|
*/
|
||||||
configuration_t * configuration_create()
|
configuration_t * configuration_create()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @file configuration.h
|
* @file configuration.h
|
||||||
*
|
*
|
||||||
* @brief class configuration_t.
|
* @brief Configuration class used to store IKE_SA-configurations.
|
||||||
*
|
*
|
||||||
*
|
* Object of this type represents a configuration for an IKE_SA and its child_sa's.
|
||||||
* Object of this type represents a configuration for an IKE_SA and its child_sa's
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -37,18 +36,22 @@ typedef struct configuration_s configuration_t;
|
|||||||
struct configuration_s {
|
struct configuration_s {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief destroys a configuration_t object
|
* @brief Destroys a configuration_t object
|
||||||
*
|
*
|
||||||
* @param this configuration_t object
|
* @param this configuration_t object
|
||||||
* @return SUCCESS if succeeded, FAILED when NULL pointer given
|
* @return
|
||||||
|
* - SUCCESS if succeeded
|
||||||
|
* - FAILED when NULL pointer given
|
||||||
*/
|
*/
|
||||||
status_t (*destroy) (configuration_t *this);
|
status_t (*destroy) (configuration_t *this);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* creates an configuration_t object
|
* Creates an configuration_t object
|
||||||
*
|
*
|
||||||
* @return created configuration_t object
|
* @return
|
||||||
|
* - pointer to created configuration_t object if succeeded
|
||||||
|
* - NULL if memory allocation failed
|
||||||
*/
|
*/
|
||||||
configuration_t *configuration_create();
|
configuration_t *configuration_create();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user