Lines Matching defs:tmpl

51 static void free_disptmpl( struct ldap_disptmpl *tmpl );
179 struct ldap_disptmpl *prevtmpl, *tmpl;
194 while ( buflen > 0 && ( rc = read_next_tmpl( &buf, &buflen, &tmpl,
195 version )) == 0 && tmpl != NULLDISPTMPL ) {
197 *tmpllistp = tmpl;
199 prevtmpl->dt_next = tmpl;
201 prevtmpl = tmpl;
228 free_disptmpl( struct ldap_disptmpl *tmpl )
230 if ( tmpl != NULL ) {
231 if ( tmpl->dt_name != NULL ) {
232 free( tmpl->dt_name );
235 if ( tmpl->dt_pluralname != NULL ) {
236 free( tmpl->dt_pluralname );
239 if ( tmpl->dt_iconname != NULL ) {
240 free( tmpl->dt_iconname );
243 if ( tmpl->dt_authattrname != NULL ) {
244 free( tmpl->dt_authattrname );
247 if ( tmpl->dt_defrdnattrname != NULL ) {
248 free( tmpl->dt_defrdnattrname );
251 if ( tmpl->dt_defaddlocation != NULL ) {
252 free( tmpl->dt_defaddlocation );
255 if ( tmpl->dt_oclist != NULL ) {
258 for ( ocp = tmpl->dt_oclist; ocp != NULL; ocp = nextocp ) {
265 if ( tmpl->dt_adddeflist != NULL ) {
268 for ( adp = tmpl->dt_adddeflist; adp != NULL; adp = nextadp ) {
280 if ( tmpl->dt_items != NULL ) {
283 for ( rowp = tmpl->dt_items; rowp != NULL; rowp = nextrowp ) {
301 free( tmpl );
315 struct ldap_disptmpl *tmpl )
317 return( tmpl == NULLDISPTMPL ? tmpl : tmpl->dt_next );
378 ldap_first_tmplrow( struct ldap_disptmpl *tmpl )
380 return( tmpl->dt_items );
385 ldap_next_tmplrow( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row )
392 ldap_first_tmplcol( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row )
399 ldap_next_tmplcol( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row,
407 ldap_tmplattrs( struct ldap_disptmpl *tmpl, char **includeattrs,
436 for ( tirowp = ldap_first_tmplrow( tmpl );
438 tirowp = ldap_next_tmplrow( tmpl, tirowp )) {
439 for ( ticolp = ldap_first_tmplcol( tmpl, tirowp );
441 ticolp = ldap_next_tmplcol( tmpl, tirowp, ticolp )) {
485 struct ldap_disptmpl *tmpl;
500 if (( tmpl = (struct ldap_disptmpl *)calloc( (size_t) 1,
505 tmpl->dt_name = toks[ 0 ];
513 free_disptmpl( tmpl );
516 tmpl->dt_pluralname = toks[ 0 ];
524 free_disptmpl( tmpl );
527 tmpl->dt_iconname = toks[ 0 ];
535 free_disptmpl( tmpl );
541 tmpl->dt_options |= tmploptvals[ j ];
554 free_disptmpl( tmpl );
558 if ( tmpl->dt_oclist == NULL ) {
559 tmpl->dt_oclist = ocp;
566 free_disptmpl( tmpl );
575 free_disptmpl( tmpl );
579 tmpl->dt_authattrname = toks[ 0 ];
590 free_disptmpl( tmpl );
593 tmpl->dt_defrdnattrname = toks[ 0 ];
601 free_disptmpl( tmpl );
605 tmpl->dt_defaddlocation = toks[ 0 ];
626 free_disptmpl( tmpl );
633 free_disptmpl( tmpl );
644 if ( tmpl->dt_adddeflist == NULL ) {
645 tmpl->dt_adddeflist = adp;
660 free_disptmpl( tmpl );
667 free_disptmpl( tmpl );
683 free_disptmpl( tmpl );
696 free_disptmpl( tmpl );
716 free_disptmpl( tmpl );
725 if ( tmpl->dt_items == NULL ) {
726 tmpl->dt_items = rowp = ip;
740 free_disptmpl( tmpl );
745 free_disptmpl( tmpl );
749 *tmplp = tmpl;