Changeset 4a17aeb in buchla-68k for include


Ignore:
Timestamp:
07/11/2017 05:11:50 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
7af8be4
Parents:
4aa78b2
Message:

Prototypes for I/O dispatch pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/io.h

    r4aa78b2 r4a17aeb  
    1111#include "stdint.h"
    1212
     13struct devtabl;
     14struct channel;
     15
     16typedef int16_t (*chclo)(io_arg arg);
     17typedef int16_t (*devop)(int8_t *name, int16_t flag, int16_t mode, struct channel *chp, struct devtabl *dp);
     18
    1319struct channel {                /* channel table entry */
    1420
     
    1723        int8_t  c_ioctl;        /* ioctl routine index */
    1824        int8_t  c_seek;         /* seek routine index */
    19         int16_t (*c_close)();   /* close function pointer */
     25        chclo   c_close;        /* close function pointer */
    2026        io_arg  c_arg;          /* argument to channel driver */
    2127};
     
    2733        int8_t  d_ioctl;        /* ioctl routine code */
    2834        int8_t  d_seek;         /* seek routine code */
    29         int16_t (*d_open)();    /* special open function */
     35        devop   d_open;         /* special open function */
    3036};
    3137
Note: See TracChangeset for help on using the changeset viewer.