/*
* Copyright (C) 2012 Martin Willi
* Copyright (C) 2012 revosec AG
*
* 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 radattr_listener radattr_listener
* @{ @ingroup radattr
*/
#ifndef RADATTR_LISTENER_H_
#define RADATTR_LISTENER_H_
#include <bus/listeners/listener.h>
typedef struct radattr_listener_t radattr_listener_t;
/**
* Output received RADIUS attributes, inject custom attributes.
*/
struct radattr_listener_t {
/**
* Implements a listener.
*/
listener_t listener;
/**
* Destroy a radattr_listener_t.
*/
void (*destroy)(radattr_listener_t *this);
};
/**
* Create a radattr_listener instance.
*/
radattr_listener_t *radattr_listener_create();
#endif /** RADATTR_LISTENER_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>