ekg2

plugins/ioctld/ioctld.h

Idź do dokumentacji tego pliku.
00001 /* $Id$ */
00002 
00003 /*
00004  *  (C) Copyright 2002  Pawel Maziarz <drg@go2.pl>
00005  *                      Wojtek Kaniewski <wojtekka@irc.pl>
00006  *                      Robert J. Wozny <speedy@ziew.org>
00007  *
00008  *  This program is free software; you can redistribute it and/or modify
00009  *  it under the terms of the GNU General Public License Version 2 as
00010  *  published by the Free Software Foundation.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  */
00021 
00022 #ifndef __EKG_IOCTLD_IOCTLD_H
00023 #define __EKG_IOCTLD_IOCTLD_H
00024 
00025 #define IOCTLD_MAX_ITEMS        50
00026 #define IOCTLD_MAX_DELAY        2000000
00027 #define IOCTLD_DEFAULT_DELAY    100000
00028 
00029 struct action_data {
00030         int act;
00031         int value[IOCTLD_MAX_ITEMS];
00032         int delay[IOCTLD_MAX_ITEMS];
00033 };
00034 
00035 enum action_type {
00036         ACT_BLINK_LEDS = 1,
00037         ACT_BEEPS_SPK = 2
00038 };
00039 
00040 int blink_leds(int *flag, int *delay);
00041 int beeps_spk(int *tone, int *delay);
00042 
00043 #endif /* __EKG_IOCTLD_IOCTLD_H */
00044 
00045 /*
00046  * Local Variables:
00047  * mode: c
00048  * c-file-style: "k&r"
00049  * c-basic-offset: 8
00050  * indent-tabs-mode: t
00051  * End:
00052  */
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje