Changeset 6843a9c in mainline for uspace/srv/hid/remcons/telnet.h


Ignore:
Timestamp:
2012-06-29T13:02:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
722912e
Parents:
ba72f2b (diff), 0bbd13e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

Trivial conflicts.

File:
1 moved

Legend:

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

    rba72f2b r6843a9c  
    11/*
    2  * Copyright (c) 2011 Vojtech Horky
     2 * Copyright (c) 2012 Vojtech Horky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libusbdev
     29/** @addtogroup remcons
    3030 * @{
    3131 */
    3232/** @file
    33  * Library internal functions on USB pipes.
    3433 */
    35 #ifndef LIBUSBDEV_PIPEPRIV_H_
    36 #define LIBUSBDEV_PIPEPRIV_H_
    3734
    38 #include <usb/dev/pipes.h>
    39 #include <bool.h>
     35#ifndef TELNET_H_
     36#define TELNET_H_
    4037
    41 void pipe_acquire(usb_pipe_t *);
    42 void pipe_release(usb_pipe_t *);
     38#include <inttypes.h>
    4339
    44 void pipe_start_transaction(usb_pipe_t *);
    45 void pipe_end_transaction(usb_pipe_t *);
     40typedef uint8_t telnet_cmd_t;
    4641
    47 int pipe_add_ref(usb_pipe_t *, bool);
    48 void pipe_drop_ref(usb_pipe_t *);
     42/*
     43 * Telnet commands.
     44 */
    4945
     46#define TELNET_IAC 255
     47
     48#define TELNET_WILL 251
     49#define TELNET_WONT 252
     50#define TELNET_DO 253
     51#define TELNET_DONT 254
     52
     53#define TELNET_IS_OPTION_CODE(code) (((code) >= 251) && ((code) <= 254))
     54
     55#define TELNET_ECHO 1
     56#define TELNET_SUPPRESS_GO_AHEAD 3
     57#define TELNET_LINEMODE 34
    5058
    5159#endif
     60
    5261/**
    5362 * @}
Note: See TracChangeset for help on using the changeset viewer.