home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
util
/
misc
/
PC_20.lha
/
PatchControl
/
autodoc
/
patch.doc
Wrap
Text File
|
1995-11-15
|
3KB
|
139 lines
TABLE OF CONTENTS
patch.resource/AddChangeHook
patch.resource/FreePatchList
patch.resource/GetPatchList
patch.resource/RemChangeHook
patch.resource/SetPatchMode
patch.resource/AddChangeHook patch.resource/AddChangeHook
NAME
AddChangeHook - add a hook for patch notify
SYNOPSIS
success = AddChangeHook( Hook )
D0 A0
bool AddChangeHook(APTR);
FUNCTION
This routine installes a hook to check if a patch was removed or
added. The hook will be called with a pointer to the hook in A0.
Please make sure that your hook-routine is fast. The task what sets
or removes a patch will be locked until your hook-routine returns.
The best thing is to send a message to your task where you can get a
new patchlist.
INPUTS
Hook - standart hookstructure
RESULTS
success - FALSE or TRUE
BUGS
SEE ALSO
RemChangeHook()
patch.resource/FreePatchList patch.resource/FreePatchList
NAME
FreePatchList - deallocate the list of systempatches
SYNOPSIS
FreePatchList( PatchList )
A0
void FreeMiscResource(APTR);
FUNCTION
This routine frees the PatchList. Please do not free this yourself.
INPUTS
PatchList - a list of patchnodes
RESULTS
Frees the appropriate resource.
BUGS
SEE ALSO
resources/patch.i, GetPatchList(), SetPatchMode()
patch.resource/GetPatchList patch.resource/GetPatchList
NAME
GetPatchList - get the list of systempatches
SYNOPSIS
PatchList = GetPatchList()
D0
APTR AllocMiscResource();
FUNCTION
This routine will create a copy of current patchlist. With this copy
you can work. It have to be freed with FreePatchList().
INPUTS
RESULTS
PatchList - a list of patchnodes
BUGS
SEE ALSO
resources/patch.i, FreePatchList(), SetPatchMode()
patch.resource/RemChangeHook patch.resource/RemChangeHook
NAME
RemChangeHook - remove a hook for patch notify
SYNOPSIS
RemChangeHook( Hook )
A0
void RemChangeHook(APTR);
FUNCTION
This function removes a hook what's added with AddChangeHook(). Don't
forget to remove the hook before your program ends.
INPUTS
Hook - standart hookstructure
RESULTS
BUGS
SEE ALSO
AddChangeHook()
patch.resource/SetPatchMode patch.resource/SetPatchMode
NAME
SetPatchMode - change the mode of a patch
SYNOPSIS
SetPatchMode( PatchNode, Mode )
A0 D0
void AddChangeHook(APTR, BOOL);
FUNCTION
With this routine you can enable or disable a patch.
INPUTS
PatchNode - a node of a patch
Mode - 0 = enable and 1 = disable
RESULTS
BUGS
SEE ALSO
resources/patch.i, GetPatchList(), FreePatchList()