Return to ha_ctl.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libcharon / plugins / ha |
1.1 misho 1: /* 2: * Copyright (C) 2008 Martin Willi 3: * HSR Hochschule fuer Technik Rapperswil 4: * 5: * This program is free software; you can redistribute it and/or modify it 6: * under the terms of the GNU General Public License as published by the 7: * Free Software Foundation; either version 2 of the License, or (at your 8: * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. 9: * 10: * This program is distributed in the hope that it will be useful, but 11: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13: * for more details. 14: */ 15: 16: /** 17: * @defgroup ha_ctl ha_ctl 18: * @{ @ingroup ha 19: */ 20: 21: #ifndef HA_CTL_H_ 22: #define HA_CTL_H_ 23: 24: #include "ha_segments.h" 25: #include "ha_cache.h" 26: 27: typedef struct ha_ctl_t ha_ctl_t; 28: 29: /** 30: * HA Sync control interface using a FIFO. 31: */ 32: struct ha_ctl_t { 33: 34: /** 35: * Destroy a ha_ctl_t. 36: */ 37: void (*destroy)(ha_ctl_t *this); 38: }; 39: 40: /** 41: * Create a ha_ctl instance. 42: * 43: * @param segments segments to control 44: * @param cache message cache for resynchronization 45: * @return HA control interface 46: */ 47: ha_ctl_t *ha_ctl_create(ha_segments_t *segments, ha_cache_t *cache); 48: 49: #endif /** HA_CTL_ @}*/