int fb_kbd_init (s_server_conf_t *cfg) { if (strcmp(cfg->keyboard.keyboard, "console") == 0) { return s_video_helper_kbd_init(cfg, fb_console_fd); } else { return -1; } }
int s_video_svga_kbd_init (s_server_conf_t *cfg) { s_video_svga_data_t *priv = (s_video_svga_data_t *) xynth_server->driver->driver_data; return s_video_helper_kbd_init(cfg, priv->console_fd); }