Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 15c5418 in mainline for uspace/lib/c/include/io/chardev.h


Ignore:
Timestamp:
2017-11-18T20:06:15Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
75fcf9b
Parents:
efb9fd08
Message:

chardev_open, chardev_close.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/chardev.h

    refb9fd08 r15c5418  
    11/*
    22 * Copyright (c) 2011 Jan Vesely
     3 * Copyright (c) 2017 Jiri Svoboda
    34 * All rights reserved.
    45 *
     
    3334#define LIBC_IO_CHARDEV_H_
    3435
     36#include <async.h>
    3537#include <types/common.h>
    36 #include <async.h>
    3738
    38 ssize_t chardev_read(async_exch_t *, void *, size_t);
    39 ssize_t chardev_write(async_exch_t *, const void *, size_t);
     39typedef struct {
     40        async_sess_t *sess;
     41} chardev_t;
     42
     43extern int chardev_open(async_sess_t *, chardev_t **);
     44extern void chardev_close(chardev_t *);
     45extern ssize_t chardev_read(chardev_t *, void *, size_t);
     46extern ssize_t chardev_write(chardev_t *, const void *, size_t);
    4047
    4148#endif
Note: See TracChangeset for help on using the changeset viewer.