2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include "datatypes_intern.h"
9 #include <proto/utility.h>
11 /*****************************************************************************
15 AROS_LH3(struct DTMethod
*, FindTriggerMethod
,
18 AROS_LHA(struct DTMethod
*, methods
, A0
),
19 AROS_LHA(STRPTR
, command
, A1
),
20 AROS_LHA(ULONG
, method
, D0
),
23 struct Library
*, DataTypesBase
, 44, DataTypes
)
27 Search for a specific trigger method in a array of trigger methods (check
28 if either 'command' or 'method' matches).
32 methods -- array of trigger methods; may be NULL
33 command -- name of trigger method (may be NULL; if so, 'command'
34 is not matched against)
35 method -- id of trigger method to search for (may be ~0; if so, don't
36 match against 'method'.
40 Pointer to trigger method table entry (struct DTMethod *) or NULL if the
51 GetDTTriggerMethods(), CopyDTTriggerMethods()
57 2.8.99 SDuvan implemented
59 *****************************************************************************/
63 struct DTMethod
*retval
= NULL
;
67 while(methods
->dtm_Method
!= STM_DONE
)
71 if(Stricmp(methods
->dtm_Command
, command
) == 0)
80 if(methods
->dtm_Method
== method
)
95 } /* FindTriggerMethod */