From c295d0eb4b11a024d1607f6a80275f372c345c08 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 26 Sep 2007 14:02:21 +0000 Subject: refactored strongswan manager removed buggy request parsing code, use ClearSilvers CGI kit instead fixed CHILD_SA listing in manager (needs better design) using secure XML communication through unix sockets removed images with questionable (non-GPL) license --- src/manager/lib/template.h | 80 ---------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 src/manager/lib/template.h (limited to 'src/manager/lib/template.h') diff --git a/src/manager/lib/template.h b/src/manager/lib/template.h deleted file mode 100644 index 6e17177a1..000000000 --- a/src/manager/lib/template.h +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @file template.h - * - * @brief Interface of template_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 TEMPLATE_H_ -#define TEMPLATE_H_ - -#include "response.h" - -typedef struct template_t template_t; - -/** - * @brief Template engine based on ClearSilver. - * - */ -struct template_t { - - /** - * @brief Set a template value. - * - * @param key key to set - * @param value value to set key to - */ - void (*set)(template_t *this, char *key, char *value); - - /** - * @brief Set a template value using format strings. - * - * Format string is in the form "key=value", where printf like format - * substitution occurs over the whole string. - * - * @param format printf like format string - * @param ... variable argument list - */ - void (*setf)(template_t *this, char *format, ...); - - /** - * @brief Render a template to a response object. - * - * The render() function additionally sets a clearsilver variable "base" - * which points to the root of the web application and allows to point to - * other targets without to worry about path location. - * - * @param response response to render to - * @return rendered template string - */ - void (*render)(template_t *this, response_t *response); - - /** - * @brief Destroy the template_t. - */ - void (*destroy) (template_t *this); -}; - -/** - * @brief Create a template from a file. - * - * @param file template file - */ -template_t *template_create(char *file); - -#endif /* TEMPLATE_H_ */ -- cgit v1.2.3