LIRC libraries
LinuxInfraredRemoteControl
 All Classes Files Functions Variables Typedefs Enumerations Macros Modules Pages
release.h File Reference

(58279a1 2016-08-04 16:33:34 +0200)

Automatic release event generation. More...

#include "ir_remote_types.h"

Go to the source code of this file.

Functions

void register_input (void)
 If there is a pending release event, set timer to current time + release_gap.
 
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.
 
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)
 Get time for pending release event if it exists, else a noop. More...
 
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)
 If there is a release event pending clears the release timer and formats a complete client message. More...
 
const char * release_map_remotes (struct ir_remote *old, struct ir_remote *new_remote, const char **remote_name, const char **button_name)
 

Detailed Description

Automatic release event generation.

Author
Christoph Bartelmus

Definition in file release.h.

Function Documentation

void get_release_time ( struct timeval *  tv)

Get time for pending release event if it exists, else a noop.

Definition at line 109 of file release.c.

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.

Parameters
remotename Name of remote for the release message.
buttonname Name of button for the release message.
Returns
Pointer to static formatted message + updated remote_name and button_name if there is a repeat message pending, else NULL.

Definition at line 144 of file release.c.