1/**
2 * \file
3 * \brief Definitions shared between libterm_client and libterm_server.
4 */
5
6/*
7 * Copyright (c) 2012, ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, CAB F.78, Universitaetstr. 6, CH-8092 Zurich,
13 * Attn: Systems Group.
14 */
15
16#ifndef LIBTERM_DEFS_H
17#define LIBTERM_DEFS_H
18
19/**
20 * Suffix used when a driver registers its terminal session interface at the
21 * nameservice.
22 *
23 * E.g. the driver 'serial0' registers its terminal session interface with
24 * the name 'serial0.terminal'.
25 */
26#define TERM_SESSION_IF_SUFFIX ".terminal"
27
28typedef void term_characters_handler_fn(void *st, char *buffer, size_t length);
29typedef void term_async_err_handler_fn(void *st, errval_t err);
30
31#endif // LIBTERM_DEFS_H
32