00001 /* 00002 * $Id$ 00003 * 00004 * 00005 * Copyright (C) 2001-2003 FhG Fokus 00006 * 00007 * This file is part of ser, a free SIP server. 00008 * 00009 * ser is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version 00013 * 00014 * For a license to use the ser software under conditions 00015 * other than those described here, or to purchase support for this 00016 * software, please contact iptel.org by e-mail at the following addresses: 00017 * info@iptel.org 00018 * 00019 * ser is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU General Public License 00025 * along with this program; if not, write to the Free Software 00026 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00027 * 00028 * History: 00029 * -------- 00030 * 00031 */ 00032 00033 00034 #ifndef _PIKE_TIMER_H 00035 #define _PIKE_TIMER_H 00036 00037 00038 struct list_link { 00039 struct list_link *next; 00040 struct list_link *prev; 00041 }; 00042 00043 00044 #define has_timer_set(_ll) \ 00045 ((_ll)->prev || (_ll)->next) 00046 00047 #define is_list_empty(_head) \ 00048 ((_head)->next == (_head)) 00049 00050 00051 00052 00053 void append_to_timer(struct list_link *head, struct list_link *ll ); 00054 00055 void remove_from_timer(struct list_link *head, struct list_link *ll); 00056 00057 void update_in_timer(struct list_link *head, struct list_link *ll); 00058 00059 void check_and_split_timer(struct list_link *head, int time, 00060 struct list_link *split, unsigned char *mask); 00061 00062 #endif 00063
1.7.1