timer.h

00001 /*
00002  * Copyright (c) 2005-2012 by KoanLogic s.r.l. <http://www.koanlogic.com>
00003  * All rights reserved.
00004  *
00005  * This file is part of KLone, and as such it is subject to the license stated
00006  * in the LICENSE file which you have received as part of this distribution.
00007  *
00008  * $Id: timer.h,v 1.5 2006/04/22 13:59:01 tat Exp $
00009  */
00010 
00011 #ifndef _KLONE_TIMERM_H_
00012 #define _KLONE_TIMERM_H_
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 struct timerm_s;
00019 typedef struct timerm_s timerm_t;
00020 
00021 struct talarm_s;
00022 typedef struct talarm_s talarm_t;
00023 
00024 typedef int (*talarm_cb_t)(talarm_t *, void *arg);
00025 
00026 int timerm_add(int secs, talarm_cb_t cb, void *arg, talarm_t **pa);
00027 int timerm_del(talarm_t *a);
00028 int timerm_reschedule(talarm_t *a, int secs, talarm_cb_t cb, void *arg);
00029 
00030 #ifdef __cplusplus
00031 }
00032 #endif 
00033 
00034 #endif

←Products
Copyright © 2005-2012 - KoanLogic S.r.l. - All rights reserved