Lines Matching defs:mapping

246  * free_table_mapping does not remove the table mapping from
251 free_table_mapping(__nis_table_mapping_t *mapping)
255 if (mapping == NULL)
258 if (mapping->dbId != NULL)
259 free(mapping->dbId);
260 mapping->dbId = NULL;
262 if (mapping->objName != NULL)
263 free(mapping->objName);
264 mapping->objName = NULL;
266 for (i = 0; i < mapping->index.numIndexes; i++) {
267 free(mapping->index.name[i]);
268 free_mapping_format(mapping->index.value[i]);
271 if (mapping->index.name != NULL)
272 free(mapping->index.name);
273 mapping->index.name = NULL;
275 if (mapping->index.value != NULL)
276 free(mapping->index.value);
277 mapping->index.value = NULL;
279 mapping->index.numIndexes = 0;
281 if (mapping->column != NULL) {
282 for (i = 0; i < mapping->numColumns; i++) {
283 free(mapping->column[i]);
285 mapping->numColumns = 0;
286 free(mapping->column);
287 mapping->column = NULL;
290 if (mapping->commentChar != NULL)
291 mapping->commentChar = NULL;
293 if (mapping->objectDN != NULL)
294 free_object_dn(mapping->objectDN);
295 mapping->objectDN = NULL;
297 if (mapping->separatorStr != NULL)
298 mapping->separatorStr = NULL;
300 for (i = 0; i < mapping->numRulesFromLDAP; i++) {
301 if (mapping->ruleFromLDAP[i]) /* See Comment below */
302 free_mapping_rule(mapping->ruleFromLDAP[i]);
304 mapping->numRulesFromLDAP = 0;
306 if (mapping->ruleFromLDAP != NULL)
307 free(mapping->ruleFromLDAP);
308 mapping->ruleFromLDAP = NULL;
310 for (i = 0; i < mapping->numRulesToLDAP; i++) {
311 if (mapping->ruleToLDAP[i])
313 * Normally mapping->ruleToLDAP[i] should
315 * mapping->numRulesToLDAP is > 0.
319 * data is present in mapping->ruleToLDAP.
321 free_mapping_rule(mapping->ruleToLDAP[i]);
323 mapping->numRulesToLDAP = 0;
325 if (mapping->ruleToLDAP != NULL)
326 free(mapping->ruleToLDAP);
327 mapping->ruleToLDAP = NULL;
329 if (mapping->e != NULL) {
331 for (i = 0; i <= mapping->numSplits; i++) {
332 free_mapping_element(&mapping->e[i]);
334 free(mapping->e);
336 mapping->e = NULL;
338 mapping->numSplits = 0;
340 free(mapping);
863 /* set to default those table mapping values yet set */
1837 * Get the next token in parsing mapping attribute