g13 tux logo   g13

state.c File Reference

#include "state.h"
#include "name.h"
#include "leds.h"
#include "backlight.h"
#include <unistd.h>
#include <string.h>
Include dependency graph for state.c:

Functions

struct g13_device_state g13_device_get_state (g13_device *device)
 Get a state structure for the device.
void g13_device_set_state (g13_device *device, struct g13_device_state *state)
 Set the device parameters according to a state structure.

Function Documentation

struct g13_device_state g13_device_get_state ( g13_device device  )  [read]
void g13_device_set_state ( g13_device device,
struct g13_device_state state 
)

Set the device parameters according to a state structure.

This function will attempt to set all parameters. If setting one or more parameter results in an error, the remainder of the parameters will still try to be set.

References g13_device_state::b, g13_device_state::g, g13_device_set_backlight_rgb(), g13_device_set_keymap_from_array(), g13_device_set_keymap_index(), g13_device_set_keymap_switching(), g13_device_set_name(), g13_device_state::keymap, g13_device_state::keymap_index, g13_device_state::keymap_switching, g13_device_state::name, g13_device_state::name_len, and g13_device_state::r.


Generated on Wed Mar 24 10:13:19 2010 for g13 by doxygen 1.6.1