LIRC libraries
Linux Infrared Remote Control
Loading...
Searching...
No Matches
release.h
Go to the documentation of this file.
1/****************************************************************************
2** release.h ***************************************************************
3****************************************************************************
4* Copyright (C) 2007 Christoph Bartelmus <lirc@bartelmus.de>
5*/
6
14#ifndef RELEASE_H
15#define RELEASE_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include "ir_remote_types.h"
22
27void register_input(void);
28
33void register_button_press(struct ir_remote* remote,
34 struct ir_ncode* ncode,
35 ir_code code,
36 int reps);
37
38void get_release_data(const char** remote_name,
39 const char** button_name,
40 int* reps);
41
42void set_release_suffix(const char* s);
43
45void get_release_time(struct timeval* tv);
46
47const char* check_release_event(const char** remote_name,
48 const char** button_name);
49
61const char* trigger_release_event(const char** remote_name,
62 const char** button_name);
63
64const char* release_map_remotes(struct ir_remote* old,
65 struct ir_remote* new_remote,
66 const char** remote_name,
67 const char** button_name);
68
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* RELEASE_H */
Describes and decodes the signals from IR remotes.
uint64_t ir_code
Denotes an internal coded representation for an IR transmission.
void register_button_press(struct ir_remote *remote, struct ir_ncode *ncode, ir_code code, int reps)
Set up pending release events for given button, including the release_gap.
Definition release.c:64
void register_input(void)
If there is a pending release event, set timer to current time + release_gap.
Definition release.c:50
const char * trigger_release_event(const char **remote_name, const char **button_name)
If there is a release event pending clears the release timer and formats a complete client message.
Definition release.c:144
void get_release_time(struct timeval *tv)
Get time for pending release event if it exists, else a noop.
Definition release.c:109
IR Command, corresponding to one (command defining) line of the configuration file.
One remote as represented in the configuration file.