![]()  | 
  
    ckb-next
    beta-v0.2.8 at branch testing
    
   ckb-next driver for corsair devices 
   | 
 
#include "includes.h"
 Include dependency graph for command.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| union | devcmd | 
| struct | devcmd.__unnamed__ | 
Macros | |
| #define | CMD_COUNT (CMD_LAST - CMD_FIRST + 2) | 
| #define | CMD_DEV_COUNT (CMD_LAST - CMD_VT_FIRST + 1) | 
Typedefs | |
| typedef void(* | cmdhandler )(usbdevice *kb, usbmode *modeidx, int notifyidx, int keyindex, const char *parameter) | 
| typedef int(* | cmdhandler_io )(usbdevice *kb, usbmode *modeidx, int notifyidx, int keyindex, const char *parameter) | 
| typedef void(* | cmdhandler_mac )(usbdevice *kb, usbmode *modeidx, int notifyidx, const char *keys, const char *assignment) | 
| typedef union devcmd | devcmd | 
Enumerations | |
| enum | cmd {  NONE = -11, DELAY = -10, CMD_FIRST = DELAY, MODE = -9, SWITCH = -8, LAYOUT = -7, ACCEL = -6, SCROLLSPEED = -5, NOTIFYON = -4, NOTIFYOFF = -3, FPS = -2, DITHER = -1, HWLOAD = 0, CMD_VT_FIRST = 0, HWSAVE, FWUPDATE, POLLRATE, ACTIVE, IDLE, ERASE, ERASEPROFILE, NAME, PROFILENAME, ID, PROFILEID, RGB, IOFF, ION, IAUTO, BIND, UNBIND, REBIND, MACRO, DPI, DPISEL, LIFT, SNAP, NOTIFY, INOTIFY, GET, RESTART, CMD_LAST = RESTART }  | 
Functions | |
| int | readcmd (usbdevice *kb, const char *line) | 
| union devcmd | 
 Collaboration diagram for devcmd:| Data Fields | ||
|---|---|---|
| struct devcmd | __unnamed__ | |
| cmdhandler | do_cmd[(CMD_LAST-CMD_VT_FIRST+1)] | |
| cmdhandler_io | do_io[(CMD_LAST-CMD_VT_FIRST+1)] | |
| cmdhandler_mac | do_macro[(CMD_LAST-CMD_VT_FIRST+1)] | |
| #define CMD_DEV_COUNT (CMD_LAST - CMD_VT_FIRST + 1) | 
| enum cmd | 
Definition at line 7 of file command.h.
| int readcmd | ( | usbdevice * | kb, | 
| const char * | line | ||
| ) | 
< Because length of word is length of line + 1, there should be no problem with buffer overflow.
Definition at line 68 of file command.c.
References ACCEL, ACTIVE, usbdevice::active, BIND, CMD_COUNT, CMD_FIRST, cmd_strings, usbprofile::currentmode, DELAY, usbdevice::delay, DITHER, usbdevice::dither, devcmd::do_cmd, devcmd::do_io, devcmd::do_macro, DPI, DPISEL, ERASE, ERASEPROFILE, FEAT_ANSI, FEAT_BIND, FEAT_ISO, FEAT_LMASK, FEAT_MOUSEACCEL, FEAT_NOTIFY, usbdevice::features, lighting::forceupdate, FPS, FWUPDATE, GET, HAS_FEATURES, HWLOAD, HWSAVE, IAUTO, ID, IDLE, INDEX_OF, INOTIFY, IOFF, ION, IS_FULLRANGE, IS_MOUSE_DEV, keymap, LAYOUT, LIFT, usbmode::light, MACRO, mknotifynode(), MODE, usbprofile::mode, MODE_COUNT, N_KEYS_EXTENDED, NAME, NEEDS_FW_UPDATE, NONE, NOTIFY, NOTIFYOFF, NOTIFYON, OUTFIFO_MAX, POLLRATE, usbdevice::profile, PROFILEID, PROFILENAME, REBIND, RESTART, RGB, rmnotifynode(), SCROLL_ACCELERATED, SCROLL_MAX, SCROLL_MIN, SCROLLSPEED, SNAP, SWITCH, TRY_WITH_RESET, UNBIND, usbdevice::usbdelay, and usbdevice::vtable.
Referenced by devmain().
 Here is the call graph for this function:
 Here is the caller graph for this function: