Home  /  Autodocs  /  datatypes.library

NAME

FindTriggerMethod
find a specified trigger method in trigger methods array (V45)

SYNOPSIS

method = FindTriggerMethod( dtm, command, method );

struct DTMethod *FindTriggerMethod( struct DTMethod *, STRPTR,
ULONG );

FUNCTION

This function searches for a given trigger method in a given methods array like got from GetDTTriggerMethods.

If one of the "command" or "method" args matches an array item, this function returns a pointer to it.

INPUTS

methods
trigger methods array, like got from GetDTTriggerMethods or DTA_TriggerMethods. NULL is a valid arg.

command
trigger method command name (case-insensitive match), may be NULL (don't match).

method
trigger method id, may be ~0UL (don't match).

RESULT

Pointer to the trigger method table entry (struct DTMethod *) or NULL if not found.

EXAMPLE



SEE ALSO

GetDTTriggerMethods, CopyDTTriggerMethods