Changeset 25a7e11d in mainline for uspace/lib/libdrv/include/driver.h


Ignore:
Timestamp:
2010-04-30T14:13:41Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f658458
Parents:
dafe675
Message:

backup (unstable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libdrv/include/driver.h

    rdafe675 r25a7e11d  
    4141#include <ipc/dev_iface.h>
    4242#include <device/hw_res.h>
     43#include <device/char.h>
    4344#include <assert.h>
    4445#include <ddi.h>
     
    8182        /** Unique identification of the class. */
    8283        int id;
     84        /** Optional callback function called when a client is connecting to the device. */
     85        int (*open)(device_t *dev);
     86        /** Optional callback function called when a client is disconnecting from the device. */
     87        void (*close)(device_t *dev);
    8388        /** The table of interfaces implemented by the device. */
    8489        void *interfaces[DEV_IFACE_COUNT];     
Note: See TracChangeset for help on using the changeset viewer.