# LIRC libraries: /var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1/lib/release.h Source File

release.h
Go to the documentation of this file.
/****************************************************************************
** release.h ***************************************************************
****************************************************************************
* Copyright (C) 2007 Christoph Bartelmus <lirc@bartelmus.de>
*/
#ifndef RELEASE_H
#define RELEASE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "ir_remote_types.h"
void register_input(void);
void register_button_press(struct ir_remote* remote,
struct ir_ncode* ncode,
ir_code code,
int reps);
void get_release_data(const char** remote_name,
const char** button_name,
int* reps);
void set_release_suffix(const char* s);
void get_release_time(struct timeval* tv);
const char* check_release_event(const char** remote_name,
const char** button_name);
const char* trigger_release_event(const char** remote_name,
const char** button_name);
const char* release_map_remotes(struct ir_remote* old,
struct ir_remote* new_remote,
const char** remote_name,
const char** button_name);
#ifdef __cplusplus
}
#endif
#endif /* RELEASE_H */
ir_remote
One remote as represented in the configuration file.
Definition: ir_remote_types.h:155
trigger_release_event
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
register_button_press
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
ir_remote_types.h
Describes and decodes the signals from IR remotes.
ir_ncode
IR Command, corresponding to one (command defining) line of the configuration file.
Definition: ir_remote_types.h:64
ir_ncode::code
ir_code code
The first code of the command.
Definition: ir_remote_types.h:69
get_release_time
void get_release_time(struct timeval *tv)
Get time for pending release event if it exists, else a noop.
Definition: release.c:109
register_input
void register_input(void)
If there is a pending release event, set timer to current time + release_gap.
Definition: release.c:50
ir_code
uint64_t ir_code
Denotes an internal coded representation for an IR transmission.
Definition: ir_remote_types.h:47