strongswan/src/libcharon/plugins/updown/updown_listener.h

50 lines
1.2 KiB
C

/*
* Copyright (C) 2008 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.
*/
/**
* @defgroup updown_listener updown_listener
* @{ @ingroup updown
*/
#ifndef UPDOWN_LISTENER_H_
#define UPDOWN_LISTENER_H_
#include <bus/bus.h>
typedef struct updown_listener_t updown_listener_t;
/**
* Listener which invokes the scripts on CHILD_SA up/down.
*/
struct updown_listener_t {
/**
* Implements listener_t.
*/
listener_t listener;
/**
* Destroy a updown_listener_t.
*/
void (*destroy)(updown_listener_t *this);
};
/**
* Create a updown_listener instance.
*/
updown_listener_t *updown_listener_create();
#endif /** UPDOWN_LISTENER_H_ @}*/