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

stophandler.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_STOP__
00023 #define __AWHANDLER_STOP__
00024 
00025 #include <stdio.h>
00026 
00027 #include "monitor.h"
00028 
00029 #include "wire.h"
00030 
00061 /* 
00062 Changes:
00063 
00064 04-19-02 Russell Leighton
00065 Added support for restart:
00066 
00067 */
00068 
00072 typedef struct {
00073 
00074   aw_handler_t
00075    handler_header;
00076 
00077   /* non-zero if restart instead of stop */
00078   u_int32_t
00079    restart;
00080 
00081 } aw_stophandler_t;
00082 
00092 aw_stophandler_t *aw_create_stophandler(u_int32_t restart,
00093                                         int32_t (*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
00094                                         int32_t (*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
00095                                         const aw_alarm_sched_t *sched,
00096                                         aw_logger_t *aware_logger);
00097 
00098 
00103 void aw_free_stophandler(aw_stophandler_t *h);
00104 
00105 
00109 aw_handler_t *aw_wire_stophandler(aw_wire_mkhandler_args_t *args);
00110 
00111 
00112 #endif
00113 
00114 
00115 
00116 
00117 
00118 
00119 
00120 
00121 
00122 
00123 
Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)