diff options
author | Martin Willi <martin@strongswan.org> | 2007-04-11 13:01:08 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-04-11 13:01:08 +0000 |
commit | 5f088665ada8aaa333a02ed610eb49c60605e82b (patch) | |
tree | a342758339c669d221b32a36ea73087194a64caf /src/charon/control/controller.h | |
parent | 3c662c30ee1509de0fd30c234d8e00c21a0f5f38 (diff) | |
download | strongswan-5f088665ada8aaa333a02ed610eb49c60605e82b.tar.bz2 strongswan-5f088665ada8aaa333a02ed610eb49c60605e82b.tar.xz |
removed IKE_SA_ID (%J) printf hook, two more to go
Diffstat (limited to 'src/charon/control/controller.h')
-rw-r--r-- | src/charon/control/controller.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/charon/control/controller.h b/src/charon/control/controller.h index e69de29bb..f8aa79dba 100644 --- a/src/charon/control/controller.h +++ b/src/charon/control/controller.h @@ -0,0 +1,64 @@ +/** + * @file controller.h + * + * @brief Interface of controller_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 CONTROLLER_H_ +#define CONTROLLER_H_ + +typedef struct controller_t controller_t; + +#include <config/backends/local_backend.h> + +/** + * @brief controller is a configuration and control interface which + * allows other processes to modify charons behavior. + * + * controller_t allows config manipulation (as whack in pluto). Configurations + * are stored in a special backend, the in-memory local_backend_t. + * Messages of type controller_msg_t's are sent over a unix socket + * (/var/run/charon.ctl). + * + * @b Constructors: + * - controller_create() + * + * @ingroup control + */ +struct controller_t { + + /** + * @brief Destroy a controller_t instance. + * + * @param this controller_t objec to destroy + */ + void (*destroy) (controller_t *this); +}; + + +/** + * @brief Create a controller instance. + * + * @return controller_t object + * + * @ingroup control + */ +controller_t *controller_create(); + +#endif /* CONTROLLER_H_ */ |