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

(88b69b3 2017-04-04 15:17:08 +0200)

Implements release.h. More...

#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include "media/lirc.h"
#include "lirc/release.h"
#include "lirc/receive.h"
#include "lirc/lirc_log.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, const char **remote_name, const char **button_name)
 

Detailed Description

Implements release.h.

Author
Christoph Bartelmus

Definition in file release.c.

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.