00001 /* 00002 Unix SMB/CIFS implementation. 00003 Handling of idle/exit events 00004 Copyright (C) Stefan (metze) Metzmacher 2003 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #ifndef _MODULE_H 00022 #define _MODULE_H 00023 00024 /* Module support */ 00025 typedef NTSTATUS (init_module_function) (void); 00026 00027 00028 typedef int smb_event_id_t; 00029 #define SMB_EVENT_ID_INVALID (-1) 00030 00031 #define SMB_IDLE_EVENT_DEFAULT_INTERVAL 180 00032 #define SMB_IDLE_EVENT_MIN_INTERVAL 30 00033 00034 typedef void (smb_idle_event_fn)(void **data,time_t *interval,time_t now); 00035 00036 #endif /* _MODULE_H */