1
/* $Id: timer_group.h 1136 2010-11-28 16:07:16Z mzuther $
2
* $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/timer_group.h $
4
* generic grouping of widget timers that have been set to the same
5
* update interval, thus allowing synchronized updates
7
* Copyright (C) 2010 Martin Zuther <code@mzuther.de>
8
* Copyright (C) 2010 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
10
* This file is part of LCD4Linux.
12
* LCD4Linux is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 2, or (at your option)
17
* LCD4Linux is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29
#ifndef _TIMER_GROUP_H_
30
#define _TIMER_GROUP_H_
33
void timer_process_group(void *data);
35
void timer_exit_group(void);
37
int timer_add_widget(void (*callback) (void *data), void *data, const int interval, const int one_shot);
39
int timer_remove_widget(void (*callback) (void *data), void *data);