(C) 1998 AROS - The Amiga Research OS


NAME
#include <dos/filehandler.h>
#include <dos/dosextens.h>
#include <libraries/expansion.h>
#include <proto/expansion.h>

BOOL AddDosNode (bootPri , flags , deviceNode)

LOCATION
In ExpansionBase at offset 25

SYNOPSIS
LONG bootPri
ULONG flags
struct DeviceNode * deviceNode

FUNCTION
This is the old function for adding devices to the system. It is recommended that you use the AddBootNode() function.

Unlike AddBootNode() you will have to add a BootNode to the system yourself.

INPUTS
bootPri
The priority of the device (-128 --> 127).
flags
Flags (ADNF_STARTPROC etc)
deviceNode
The device to add to the system.

RESULT
non-zero if everything succeeded, zero on failure.

EXAMPLE
//  Add a bootable disk to the system. This will start a
//  file handler process immediately.

if( AddDosNode( 0, ADNF_STARTPROC, MakeDosNode( paramPacket )))
{
    // AddDosNode() ok
}
SEE ALSO
AddBootNode(), MakeDosNode()

NOTES
It is much better to use AddBootNode() as it will also construct the BootNode structure, and add it to the system.

BUGS

INTERNALS

HISTORY