libmygpio
libmygpio API documentation
Loading...
Searching...
No Matches
libmygpio_idle.h File Reference

myGPIOd client library More...

#include <stdbool.h>
#include <stdint.h>
Include dependency graph for libmygpio_idle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  mygpio_event {
  MYGPIO_EVENT_UNKNOWN = -1 , MYGPIO_EVENT_GPIO_FALLING , MYGPIO_EVENT_GPIO_RISING , MYGPIO_EVENT_GPIO_LONG_PRESS ,
  MYGPIO_EVENT_GPIO_LONG_PRESS_RELEASE , MYGPIO_EVENT_INPUT
}

Functions

enum mygpio_event mygpio_parse_event (const char *str)
const char * mygpio_lookup_event (enum mygpio_event event)
bool mygpio_send_idle (struct t_mygpio_connection *connection)
bool mygpio_send_noidle (struct t_mygpio_connection *connection)
bool mygpio_wait_idle (struct t_mygpio_connection *connection, int timeout)
struct t_mygpio_idle_eventmygpio_recv_idle_event (struct t_mygpio_connection *connection)
unsigned mygpio_idle_event_get_gpio (struct t_mygpio_idle_event *event)
enum mygpio_event mygpio_idle_event_get_event (struct t_mygpio_idle_event *event)
const char * mygpio_idle_event_get_event_name (struct t_mygpio_idle_event *event)
uint64_t mygpio_idle_event_get_timestamp_ms (struct t_mygpio_idle_event *event)
const char * mygpio_idle_event_get_input_device (struct t_mygpio_idle_event *event)
const char * mygpio_idle_event_get_input_type (struct t_mygpio_idle_event *event)
const char * mygpio_idle_event_get_input_code (struct t_mygpio_idle_event *event)
unsigned mygpio_idle_event_get_input_value (struct t_mygpio_idle_event *event)
void mygpio_free_idle_event (struct t_mygpio_idle_event *event)

Detailed Description

myGPIOd client library

Do not include this header directly. Use libmygpio/libmygpio.h instead.