Changeset 5923cf82 in mainline for uspace/srv/hid/remcons/user.h
- Timestamp:
- 2012-01-12T08:47:09Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 261bbdc
- Parents:
- d545d03
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/remcons/user.h
rd545d03 r5923cf82 42 42 #define BUFFER_SIZE 1024 43 43 44 /** Representation of a connected (human) user. */ 44 45 typedef struct { 46 /** Internal id, used for creating locfs entries. */ 45 47 int id; 48 /** Associated socket. */ 46 49 int socket; 50 /** Location service id assigned to the virtual terminal. */ 47 51 service_id_t service_id; 52 /** Path name of the service. */ 48 53 char *service_name; 54 49 55 /** Producer-consumer of kbd_event_t. */ 50 56 prodcons_t in_events; … … 54 60 size_t socket_buffer_pos; 55 61 62 /** Task id of the launched application. */ 56 63 task_id_t task_id; 57 64 … … 69 76 void telnet_user_notify_client_disconnected(telnet_user_t *user); 70 77 78 /** Print informational message about connected user. */ 71 79 #define telnet_user_log(user, fmt, ...) \ 72 80 printf(NAME " [console %d (%d)]: " fmt "\n", user->id, (int) user->service_id, ##__VA_ARGS__) 73 81 82 /** Print error message associated with connected user. */ 74 83 #define telnet_user_error(user, fmt, ...) \ 75 84 fprintf(stderr, NAME " [console %d (%d)]: ERROR: " fmt "\n", user->id, (int) user->service_id, ##__VA_ARGS__)
Note:
See TracChangeset
for help on using the changeset viewer.