diff options
author | Harald Welte <laforge@netfilter.org> | 2010-02-20 23:22:54 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2010-02-20 23:22:54 +0100 |
commit | 1ed97629adffa6b5345963ec8905526da835535a (patch) | |
tree | a49e90400aa3a59c8e68db352c0c3c5a4f3dab6a /libosmocore/include/osmocore/timer.h | |
parent | 8427e2e5df902a97ab154db2638fcf948bb38666 (diff) |
remove libosmocore from openbsc
From now on, you will have to obtain, build and install libosmocore
before being able to build openbsc. Sorry for that. But I hope
it's a small price to pay for having no code duplication with our
work on the phone side GSM stack!
Diffstat (limited to 'libosmocore/include/osmocore/timer.h')
-rw-r--r-- | libosmocore/include/osmocore/timer.h | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/libosmocore/include/osmocore/timer.h b/libosmocore/include/osmocore/timer.h deleted file mode 100644 index fee888bfd..000000000 --- a/libosmocore/include/osmocore/timer.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * (C) 2008, 2009 by Holger Hans Peter Freyther <zecke@selfish.org> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - */ - -#ifndef TIMER_H -#define TIMER_H - -#include <sys/time.h> - -#include "linuxlist.h" - -/** - * Timer management: - * - Create a struct timer_list - * - Fill out timeout and use add_timer or - * use schedule_timer to schedule a timer in - * x seconds and microseconds from now... - * - Use del_timer to remove the timer - * - * Internally: - * - We hook into select.c to give a timeval of the - * nearest timer. On already passed timers we give - * it a 0 to immediately fire after the select - * - update_timers will call the callbacks and remove - * the timers. - * - */ -struct timer_list { - struct llist_head entry; - struct timeval timeout; - unsigned int active : 1; - unsigned int handled : 1; - unsigned int in_list : 1; - - void (*cb)(void*); - void *data; -}; - -/** - * timer management - */ -void bsc_add_timer(struct timer_list *timer); -void bsc_schedule_timer(struct timer_list *timer, int seconds, int microseconds); -void bsc_del_timer(struct timer_list *timer); -int bsc_timer_pending(struct timer_list *timer); - - -/** - * internal timer list management - */ -struct timeval *bsc_nearest_timer(); -void bsc_prepare_timers(); -int bsc_update_timers(); -int bsc_timer_check(void); - -#endif |