# LIRC libraries: button_state Struct Reference

button_state Struct Reference

State while recording buttons, privates besides commented. More...

`#include <irrecord.h>`

## Public Attributes

struct ir_ncode | ncode
| Recorded button, valid on STS_BTN_BUTTON_DONE. More...
char | message [128]
| Error message, valid on STS_BTN_*_ERROR. More...
int | retval
char | buffer [BUTTON]
char * | string
lirc_t | data
lirc_t | sum
unsigned int | count
int | flag
int | no_data
int | started_as_root

## Detailed Description

State while recording buttons, privates besides commented.

Definition at line 236 of file irrecord.h.

## Member Data Documentation

## message

char button_state::message[128]

Error message, valid on STS_BTN_*_ERROR.

Definition at line 240 of file irrecord.h.

## ncode

struct ir_ncode button_state::ncode

Recorded button, valid on STS_BTN_BUTTON_DONE.

Definition at line 238 of file irrecord.h.

The documentation for this struct was generated from the following file:

- /var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1/lib/irrecord.h