Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

ip2namehandler.h

Go to the documentation of this file.
00001 
00002 /*
00003 ** Copyright (C) 2002 Russell Leighton
00004 **
00005 ** This program is free software; you can redistribute it and/or modify
00006 ** it under the terms of the GNU General Public License as published by
00007 ** the Free Software Foundation; either version 2 of the License, or
00008 ** (at your option) any later version.
00009 **
00010 ** This program is distributed in the hope that it will be useful,
00011 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 ** GNU General Public License for more details.
00014 **
00015 ** You should have received a copy of the GNU General Public License
00016 ** along with this program; if not, write to the Free Software
00017 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018 */
00019 
00020 
00021  
00022 #ifndef __AWHANDLER_IP2NAME__
00023 #define __AWHANDLER_IP2NAME__
00024 
00025 #include <stdio.h>
00026 
00027 #include "monitor.h"
00028 
00029 #include "wire.h"
00030 
00032 /*\@{*/
00033 
00083 /* 
00084 Changes:
00085 
00086 */
00087 
00088 
00092 typedef struct {
00093 
00094   aw_event_sig_t
00095    name,                 /* generate this event when we succeed */
00096    noname;               /* generate this event when we fail */
00097 
00098 } aw_ip2namehandler_events_t;
00099 
00100 
00104 typedef struct {
00105 
00106   aw_handler_t
00107    handler_header;
00108 
00109   aw_ip2namehandler_events_t
00110    events;
00111 
00112 } aw_ip2namehandler_t;
00113 
00123 aw_ip2namehandler_t *aw_create_ip2namehandler(aw_ip2namehandler_events_t *events,
00124                                               int32_t (*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
00125                                               int32_t (*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
00126                                               const aw_alarm_sched_t *sched,
00127                                               aw_logger_t *logger);
00128 
00129 
00134 void aw_free_ip2namehandler(aw_ip2namehandler_t *h);
00135 
00136 
00140 aw_handler_t *aw_wire_ip2namehandler(aw_wire_mkhandler_args_t *args);
00141 
00142 /*\@}*/
00143 
00144 #endif
00145 
00146 
00147 
00148 
00149 
00150 
00151 
00152 
00153 
00154 
00155 
Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)