1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 int
 saf_find_state_tmpl(SAF_ParMode   pmode,        /* The parallel mode. */
                     SAF_Db *database,           /* the database context for this search */
                     const char    *name,        /* The name of the state template you are searching for.  Pass SAF_ANY_NAME if you
                                                  * do not wish to limit your search to just this name. */
                     int           *num_stmpls,  /* For this and the succeeding argument [see Returned Handles]. */
                     SAF_StateTmpl **stmpls      /* For this and the preceding argument [see Returned Handles]. */
                     )
 {
   SAF_ENTER(saf_find_state_tmpl, SAF_PRECONDITION_ERROR);

   saf_find_field_tmpls (pmode, database, name, SAF_ALGTYPE_ANY, SAF_ANY_BASIS, SAF_ANY_QUANTITY,
                         num_stmpls, stmpls);

   SAF_LEAVE(SAF_SUCCESS);
 }