ekg2
GIT master
plugins
ioctld
ioctld.h
Idź do dokumentacji tego pliku.
1
/* $Id$ */
2
3
/*
4
* (C) Copyright 2002 Pawel Maziarz <drg@go2.pl>
5
* Wojtek Kaniewski <wojtekka@irc.pl>
6
* Robert J. Wozny <speedy@ziew.org>
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License Version 2 as
10
* published by the Free Software Foundation.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
*/
21
22
#ifndef __EKG_IOCTLD_IOCTLD_H
23
#define __EKG_IOCTLD_IOCTLD_H
24
25
#define IOCTLD_MAX_ITEMS 50
26
#define IOCTLD_MAX_DELAY 2000000
27
#define IOCTLD_DEFAULT_DELAY 100000
28
29
struct
action_data
{
30
int
act
;
31
int
value
[
IOCTLD_MAX_ITEMS
];
32
int
delay
[
IOCTLD_MAX_ITEMS
];
33
};
34
35
enum
action_type
{
36
ACT_BLINK_LEDS
= 1,
37
ACT_BEEPS_SPK
= 2
38
};
39
40
int
blink_leds
(
int
*flag,
int
*
delay
);
41
int
beeps_spk
(
int
*tone,
int
*
delay
);
42
43
#endif
/* __EKG_IOCTLD_IOCTLD_H */
44
45
/*
46
* Local Variables:
47
* mode: c
48
* c-file-style: "k&r"
49
* c-basic-offset: 8
50
* indent-tabs-mode: t
51
* End:
52
*/
blink_leds
int blink_leds(int *flag, int *delay)
action_data
Definition:
ioctld.h:29
action_data::value
int value[50]
Definition:
ioctld.h:31
action_data::delay
int delay[50]
Definition:
ioctld.h:32
action_type
action_type
Definition:
ioctld.h:35
ACT_BEEPS_SPK
Definition:
ioctld.h:37
IOCTLD_MAX_ITEMS
#define IOCTLD_MAX_ITEMS
Definition:
ioctld.h:25
beeps_spk
int beeps_spk(int *tone, int *delay)
ACT_BLINK_LEDS
Definition:
ioctld.h:36
action_data::act
int act
Definition:
ioctld.h:30
Wygenerowano przez
1.8.13