Changeset 5923cf82 in mainline for uspace/srv/hid/remcons/user.h


Ignore:
Timestamp:
2012-01-12T08:47:09Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
261bbdc
Parents:
d545d03
Message:

remcons: add comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/remcons/user.h

    rd545d03 r5923cf82  
    4242#define BUFFER_SIZE 1024
    4343
     44/** Representation of a connected (human) user. */
    4445typedef struct {
     46        /** Internal id, used for creating locfs entries. */
    4547        int id;
     48        /** Associated socket. */
    4649        int socket;
     50        /** Location service id assigned to the virtual terminal. */
    4751        service_id_t service_id;
     52        /** Path name of the service. */
    4853        char *service_name;
     54
    4955        /** Producer-consumer of kbd_event_t. */
    5056        prodcons_t in_events;
     
    5460        size_t socket_buffer_pos;
    5561
     62        /** Task id of the launched application. */
    5663        task_id_t task_id;
    5764
     
    6976void telnet_user_notify_client_disconnected(telnet_user_t *user);
    7077
     78/** Print informational message about connected user. */
    7179#define telnet_user_log(user, fmt, ...) \
    7280        printf(NAME " [console %d (%d)]: " fmt "\n", user->id, (int) user->service_id, ##__VA_ARGS__)
    7381
     82/** Print error message associated with connected user. */
    7483#define telnet_user_error(user, fmt, ...) \
    7584        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.