Changes in uspace/srv/hid/remcons/remcons.c [b7fd2a0:c8211849] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/remcons/remcons.c
rb7fd2a0 rc8211849 70 70 sizeof(telnet_force_character_mode_command) / sizeof(telnet_cmd_t); 71 71 72 static errno_t remcons_open(con_srvs_t *, con_srv_t *);73 static errno_t remcons_close(con_srv_t *);74 static errno_t remcons_write(con_srv_t *, void *, size_t, size_t *);72 static int remcons_open(con_srvs_t *, con_srv_t *); 73 static int remcons_close(con_srv_t *); 74 static int remcons_write(con_srv_t *, void *, size_t, size_t *); 75 75 static void remcons_sync(con_srv_t *); 76 76 static void remcons_clear(con_srv_t *); 77 77 static void remcons_set_pos(con_srv_t *, sysarg_t col, sysarg_t row); 78 static errno_t remcons_get_pos(con_srv_t *, sysarg_t *, sysarg_t *);79 static errno_t remcons_get_size(con_srv_t *, sysarg_t *, sysarg_t *);80 static errno_t remcons_get_color_cap(con_srv_t *, console_caps_t *);81 static errno_t remcons_get_event(con_srv_t *, cons_event_t *);78 static int remcons_get_pos(con_srv_t *, sysarg_t *, sysarg_t *); 79 static int remcons_get_size(con_srv_t *, sysarg_t *, sysarg_t *); 80 static int remcons_get_color_cap(con_srv_t *, console_caps_t *); 81 static int remcons_get_event(con_srv_t *, cons_event_t *); 82 82 83 83 static con_ops_t con_ops = { … … 114 114 } 115 115 116 static errno_t remcons_open(con_srvs_t *srvs, con_srv_t *srv)116 static int remcons_open(con_srvs_t *srvs, con_srv_t *srv) 117 117 { 118 118 telnet_user_t *user = srv_to_user(srv); … … 127 127 } 128 128 129 static errno_t remcons_close(con_srv_t *srv)129 static int remcons_close(con_srv_t *srv) 130 130 { 131 131 telnet_user_t *user = srv_to_user(srv); … … 137 137 } 138 138 139 static errno_t remcons_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten)140 { 141 telnet_user_t *user = srv_to_user(srv); 142 errno_t rc;139 static int remcons_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten) 140 { 141 telnet_user_t *user = srv_to_user(srv); 142 int rc; 143 143 144 144 rc = telnet_user_send_data(user, data, size); … … 167 167 } 168 168 169 static errno_t remcons_get_pos(con_srv_t *srv, sysarg_t *col, sysarg_t *row)169 static int remcons_get_pos(con_srv_t *srv, sysarg_t *col, sysarg_t *row) 170 170 { 171 171 telnet_user_t *user = srv_to_user(srv); … … 177 177 } 178 178 179 static errno_t remcons_get_size(con_srv_t *srv, sysarg_t *cols, sysarg_t *rows)179 static int remcons_get_size(con_srv_t *srv, sysarg_t *cols, sysarg_t *rows) 180 180 { 181 181 (void) srv; … … 187 187 } 188 188 189 static errno_t remcons_get_color_cap(con_srv_t *srv, console_caps_t *ccaps)189 static int remcons_get_color_cap(con_srv_t *srv, console_caps_t *ccaps) 190 190 { 191 191 (void) srv; … … 195 195 } 196 196 197 static errno_t remcons_get_event(con_srv_t *srv, cons_event_t *event)197 static int remcons_get_event(con_srv_t *srv, cons_event_t *event) 198 198 { 199 199 telnet_user_t *user = srv_to_user(srv); 200 200 kbd_event_t kevent; 201 errno_t rc;201 int rc; 202 202 203 203 rc = telnet_user_get_next_keyboard_event(user, &kevent); … … 232 232 * @param arg Corresponding @c telnet_user_t structure. 233 233 */ 234 static errno_t spawn_task_fibril(void *arg)234 static int spawn_task_fibril(void *arg) 235 235 { 236 236 telnet_user_t *user = arg; … … 238 238 task_id_t task; 239 239 task_wait_t wait; 240 errno_t rc = task_spawnl(&task, &wait, APP_GETTERM, APP_GETTERM, user->service_name,240 int rc = task_spawnl(&task, &wait, APP_GETTERM, APP_GETTERM, user->service_name, 241 241 "/loc", "--msg", "--", APP_SHELL, NULL); 242 242 if (rc != EOK) { … … 300 300 telnet_user_add(user); 301 301 302 errno_t rc = loc_service_register(user->service_name, &user->service_id);302 int rc = loc_service_register(user->service_name, &user->service_id); 303 303 if (rc != EOK) { 304 304 telnet_user_error(user, "Unable to register %s with loc: %s.", … … 344 344 int main(int argc, char *argv[]) 345 345 { 346 errno_t rc;346 int rc; 347 347 tcp_listener_t *lst; 348 348 tcp_t *tcp;
Note:
See TracChangeset
for help on using the changeset viewer.