From 5f088665ada8aaa333a02ed610eb49c60605e82b Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 11 Apr 2007 13:01:08 +0000 Subject: removed IKE_SA_ID (%J) printf hook, two more to go --- src/charon/control/controller.h | 64 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) (limited to 'src/charon/control/controller.h') 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 . + * + * 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 + +/** + * @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_ */ -- cgit v1.2.3