1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 SAF_Role *
 saf_find_one_role(SAF_Db *database,                     /* The database in which to search */
                   const char *name,                     /* The name for which to search */
                   SAF_Role *buf                         /* [OUT] Optional role handle to initialize and return. */
                   )
 {
     SAF_ENTER(saf_find_one_role, NULL);
     int                 n=1;

     saf_find_roles(SAF_EACH, database, name, NULL, &n, &buf);
     SAF_LEAVE(buf);
 }