Annotation of embedaddon/strongswan/src/libcharon/plugins/uci/uci_config.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2008 Martin Willi
                      3:  * Copyright (C) 2008 Thomas Kallenberg
                      4:  * HSR Hochschule fuer Technik Rapperswil
                      5:  *
                      6:  * This program is free software; you can redistribute it and/or modify it
                      7:  * under the terms of the GNU General Public License as published by the
                      8:  * Free Software Foundation; either version 2 of the License, or (at your
                      9:  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
                     10:  *
                     11:  * This program is distributed in the hope that it will be useful, but
                     12:  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
                     13:  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
                     14:  * for more details.
                     15:  */
                     16: 
                     17: /**
                     18:  * @defgroup uci_config_t uci_config
                     19:  * @{ @ingroup uci
                     20:  */
                     21: 
                     22: #ifndef UCI_CONFIG_H_
                     23: #define UCI_CONFIG_H_
                     24: 
                     25: #include "uci_parser.h"
                     26: 
                     27: #include <config/backend.h>
                     28: 
                     29: typedef struct uci_config_t uci_config_t;
                     30: 
                     31: /**
                     32:  * OpenWRT UCI configuration backend.
                     33:  */
                     34: struct uci_config_t {
                     35: 
                     36:        /**
                     37:         * Implements backend_t interface
                     38:         */
                     39:        backend_t backend;
                     40: 
                     41:        /**
                     42:         * Destroy the backend.
                     43:         */
                     44:        void (*destroy)(uci_config_t *this);
                     45: };
                     46: 
                     47: /**
                     48:  * Create a UCI based configuration backend.
                     49:  *
                     50:  * @param parser       UCI parser to use
                     51:  * @return                     configuration backend
                     52:  */
                     53: uci_config_t *uci_config_create(uci_parser_t *parser);
                     54: 
                     55: #endif /** UCI_CONFIG_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>