1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 herr_t
 ss_pers_reset(ss_pers_t *pers,          /* The object to be reset */
               unsigned flags            /* Bit flags such as SS_ALLSAME */
               )
 {
     SS_ENTER(ss_pers_reset, herr_t);
     ss_persobj_t        *persobj=NULL;

     SS_ASSERT_CLASS(pers, ss_pers_t);
     if (NULL==(persobj=ss_pers_deref(pers))) SS_ERROR(FAILED);
     if (ss_pers_reset_(persobj, flags)<0) SS_ERROR(FAILED);
 SS_CLEANUP:
     SS_LEAVE(0);
 }