2 * Copyright (C) 2009 Martin Willi
3 * Hochschule fuer Technik Rapperswil
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>.
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
17 * @defgroup nm_handler nm_handler
24 #include <attributes/attribute_handler.h>
26 typedef struct nm_handler_t nm_handler_t
;
29 * Handles DNS/NBNS attributes to pass to NM.
34 * Implements attribute handler interface
36 attribute_handler_t handler
;
39 * Create an enumerator over received attributes of a given kind.
41 * @param type type of attributes to enumerate
42 * @return enumerator over attribute data (chunk_t)
44 enumerator_t
* (*create_enumerator
)(nm_handler_t
*this,
45 configuration_attribute_type_t type
);
47 * Reset state, flush all received attributes.
49 void (*reset
)(nm_handler_t
*this);
52 * Destroy a nm_handler_t.
54 void (*destroy
)(nm_handler_t
*this);
58 * Create a nm_handler instance.
60 nm_handler_t
*nm_handler_create();
62 #endif /** NM_HANDLER_H_ @}*/