Lines Matching defs:so

56 static void free_searchobj( struct ldap_searchobj *so );
124 struct ldap_searchobj *prevso, *so;
140 while ( buflen > 0 && ( rc = read_next_searchobj( &buf, &buflen, &so,
141 version )) == 0 && so != NULLSEARCHOBJ ) {
143 *solistp = so;
145 prevso->so_next = so;
147 prevso = so;
162 struct ldap_searchobj *so, *nextso;
165 for ( so = solist; so != NULL; so = nextso ) {
166 nextso = so->so_next;
167 free_searchobj( so );
175 free_searchobj( struct ldap_searchobj *so )
177 if ( so != NULL ) {
178 if ( so->so_objtypeprompt != NULL ) {
179 free( so->so_objtypeprompt );
181 if ( so->so_prompt != NULL ) {
182 free( so->so_prompt );
184 if ( so->so_filterprefix != NULL ) {
185 free( so->so_filterprefix );
187 if ( so->so_filtertag != NULL ) {
188 free( so->so_filtertag );
190 if ( so->so_defaultselectattr != NULL ) {
191 free( so->so_defaultselectattr );
193 if ( so->so_defaultselecttext != NULL ) {
194 free( so->so_defaultselecttext );
196 if ( so->so_salist != NULL ) {
198 for ( sa = so->so_salist; sa != NULL; sa = nextsa ) {
215 if ( so->so_smlist != NULL ) {
217 for ( sm = so->so_smlist; sm != NULL; sm = nextsm ) {
228 free( so );
242 ldap_next_searchobj( struct ldap_searchobj *solist, struct ldap_searchobj *so )
244 return( so == NULLSEARCHOBJ ? so : so->so_next );
255 struct ldap_searchobj *so;
269 if (( so = (struct ldap_searchobj *)calloc( (size_t) 1,
274 so->so_objtypeprompt = toks[ 0 ];
283 ldap_free_searchprefs( so );
289 so->so_options |= sobjoptvals[ j ];
301 ldap_free_searchprefs( so );
304 so->so_prompt = toks[ 0 ];
312 ldap_free_searchprefs( so );
315 so->so_filterprefix = toks[ 0 ];
323 ldap_free_searchprefs( so );
326 so->so_filtertag = toks[ 0 ];
334 ldap_free_searchprefs( so );
337 so->so_defaultselectattr = toks[ 0 ];
345 ldap_free_searchprefs( so );
348 so->so_defaultselecttext = toks[ 0 ];
356 ldap_free_searchprefs( so );
360 so->so_defaultscope = LDAP_SCOPE_SUBTREE;
362 so->so_defaultscope = LDAP_SCOPE_ONELEVEL;
364 so->so_defaultscope = LDAP_SCOPE_BASE;
366 ldap_free_searchprefs( so );
375 sa = &( so->so_salist );
379 ldap_free_searchprefs( so );
385 ldap_free_searchprefs( so );
408 sm = &( so->so_smlist );
412 ldap_free_searchprefs( so );
418 ldap_free_searchprefs( so );
428 *sop = so;