diff options
Diffstat (limited to 'src/manager/gateway.h')
-rw-r--r-- | src/manager/gateway.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/manager/gateway.h b/src/manager/gateway.h index 7b5d91045..d84f00038 100644 --- a/src/manager/gateway.h +++ b/src/manager/gateway.h @@ -24,6 +24,7 @@ #define GATEWAY_H_ #include <utils/host.h> +#include <enumerator.h> typedef struct gateway_t gateway_t; @@ -39,7 +40,14 @@ struct gateway_t { * @return allocated xml response string */ char* (*request)(gateway_t *this, char *xml); - + + /** + * @brief Query the list of IKE_SAs and all its children. + * + * @return enumerator over ikesa XML elements + */ + enumerator_t* (*query_ikesalist)(gateway_t *this); + /** * @brief Destroy a gateway instance. */ @@ -47,12 +55,20 @@ struct gateway_t { }; /** - * @brief Create a gateway instance. + * @brief Create a gateway instance using a TCP connection. * * @param name name of the gateway * @param host gateway connection endpoint * @param */ -gateway_t *gateway_create(char *name, host_t *host); +gateway_t *gateway_create_tcp(char *name, host_t *host); + +/** + * @brief Create a gateway instance using a UNIX socket. + * + * @param name name of the gateway + * @param + */ +gateway_t *gateway_create_unix(char *name); #endif /* GATEWAY_H_ */ |