LIRC libraries
LinuxInfraredRemoteControl
 All Classes Files Functions Variables Typedefs Enumerations Macros Modules Pages
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
18 extern "C" {
19 #endif
20 
21 #include "ir_remote_types.h"
22 
27 void register_input(void);
28 
33 void register_button_press(struct ir_remote* remote,
34  struct ir_ncode* ncode,
35  ir_code code,
36  int reps);
37 
38 void get_release_data(const char** remote_name,
39  const char** button_name,
40  int* reps);
41 
42 void set_release_suffix(const char* s);
43 
45 void get_release_time(struct timeval* tv);
46 
47 const char* check_release_event(const char** remote_name,
48  const char** button_name);
49 
61 const char* trigger_release_event(const char** remote_name,
62  const char** button_name);
63 
64 const 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 */
One remote as represented in the configuration file.
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 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
Describes and decodes the signals from IR remotes.
IR Command, corresponding to one (command defining) line of the configuration file.
ir_code code
The first code of the command.
void get_release_time(struct timeval *tv)
Get time for pending release event if it exists, else a noop.
Definition: release.c:109
void register_input(void)
If there is a pending release event, set timer to current time + release_gap.
Definition: release.c:50
uint64_t ir_code
Denotes an internal coded representation for an IR transmission.