diff options
author | Martin Willi <martin@strongswan.org> | 2007-09-11 15:22:02 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-09-11 15:22:02 +0000 |
commit | 965e99b5bff26d1f43273214a5f44e31611018e7 (patch) | |
tree | 8fc01a4fb5e9f781b1d3ef7d83959002749d2a67 /src/manager/gateway.h | |
parent | f0c156fbc91e212852971f690da677a51ba97397 (diff) | |
download | strongswan-965e99b5bff26d1f43273214a5f44e31611018e7.tar.bz2 strongswan-965e99b5bff26d1f43273214a5f44e31611018e7.tar.xz |
first revision of new manager webapp
Diffstat (limited to 'src/manager/gateway.h')
-rw-r--r-- | src/manager/gateway.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/manager/gateway.h b/src/manager/gateway.h new file mode 100644 index 000000000..7b5d91045 --- /dev/null +++ b/src/manager/gateway.h @@ -0,0 +1,58 @@ +/** + * @file gateway.h + * + * @brief Interface of gateway_t. + * + */ + +/* + * Copyright (C) 2007 Martin Willi + * Hochschule fuer Technik Rapperswil + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#ifndef GATEWAY_H_ +#define GATEWAY_H_ + +#include <utils/host.h> + +typedef struct gateway_t gateway_t; + +/** + * @brief A connection to a gateway. + */ +struct gateway_t { + + /** + * @brief Send an XML request to the gateway. + * + * @param xml xml request string + * @return allocated xml response string + */ + char* (*request)(gateway_t *this, char *xml); + + /** + * @brief Destroy a gateway instance. + */ + void (*destroy)(gateway_t *this); +}; + +/** + * @brief Create a gateway instance. + * + * @param name name of the gateway + * @param host gateway connection endpoint + * @param + */ +gateway_t *gateway_create(char *name, host_t *host); + +#endif /* GATEWAY_H_ */ |