driverutil.bi

Contains some additional driver utilities in the mos core library

Author

Marcel Sondaar

License

Public Domain

Summary
driverutil.biContains some additional driver utilities in the mos core library
MCQueryUtilityEvent handler that simplifies syscommand_queryinterfaces calls Instantiate one instance of this class, then call the function for each interface that needs to be publicly exposed
Variables
mHandlesinternal variable containing the list of exposed interfaces
mHandleCountinternal variable containing the amount of exposed interfaces
Functions
AddInterfaceAdds an interface to be exposed
RemoveInterfaceRemoves an interface from the exposed list
AnnounceDriverRegisters this driver as an endpoint.
queryinterfacesHandle the actual query message

MCQueryUtility

Event handler that simplifies syscommand_queryinterfaces calls Instantiate one instance of this class, then call the function for each interface that needs to be publicly exposed

Summary
Variables
mHandlesinternal variable containing the list of exposed interfaces
mHandleCountinternal variable containing the amount of exposed interfaces
Functions
AddInterfaceAdds an interface to be exposed
RemoveInterfaceRemoves an interface from the exposed list
AnnounceDriverRegisters this driver as an endpoint.
queryinterfacesHandle the actual query message

Variables

mHandles

mHandles As Integer Ptr

internal variable containing the list of exposed interfaces

mHandleCount

mHandleCount As Integer

internal variable containing the amount of exposed interfaces

Functions

AddInterface

Declare Sub AddInterface(ByVal interface As Integer)

Adds an interface to be exposed

Input

interfacethe ID of the interface, from DRIVERINTERFACES

Output

none

RemoveInterface

Declare Sub RemoveInterface(ByVal interface As Integer)

Removes an interface from the exposed list

Input

interfacethe ID of the interface, from DRIVERINTERFACES

Output

none

AnnounceDriver

Declare Sub AnnounceDriver(ByVal deviceid As Integer)

Registers this driver as an endpoint.

Input

deviceidthe ID of the device to which this driver is assigned

Output

none

queryinterfaces

Declare Virtual Sub queryinterfaces (ByVal channel As Byte Ptr)

Handle the actual query message

mHandles As Integer Ptr
internal variable containing the list of exposed interfaces
mHandleCount As Integer
internal variable containing the amount of exposed interfaces
Declare Sub AddInterface(ByVal interface As Integer)
Adds an interface to be exposed
Declare Sub RemoveInterface(ByVal interface As Integer)
Removes an interface from the exposed list
Declare Sub AnnounceDriver(ByVal deviceid As Integer)
Registers this driver as an endpoint.
Declare Virtual Sub queryinterfaces (ByVal channel As Byte Ptr)
Handle the actual query message
Lists numbers for all basic driver interfaces