1 /*
   2  * This file and its contents are supplied under the terms of the
   3  * Common Development and Distribution License ("CDDL"), version 1.0.
   4  * You may only use this file in accordance with the terms of version
   5  * 1.0 of the CDDL.
   6  *
   7  * A full copy of the text of the CDDL should have accompanied this
   8  * source.  A copy of the CDDL is also available via the Internet at
   9  * http://www.illumos.org/license/CDDL.
  10  */
  11 
  12 /*
  13  * Copyright 2015 Gary Mills
  14  */
  15 
  16 #ifndef _NIS_PARSE_LDAP_UTIL_H
  17 #define _NIS_PARSE_LDAP_UTIL_H
  18 
  19 /*
  20  * Functions defined in nis_parse_ldap_util.c needed elsewhere
  21  */
  22 
  23 #ifdef __cplusplus
  24 extern "C" {
  25 #endif
  26 
  27 extern void *s_malloc(size_t);
  28 extern bool_t add_column(__nis_table_mapping_t *, const char *);
  29 extern bool_t dup_index(__nis_index_t *, __nis_index_t *);
  30 extern bool_t dup_mapping_element(__nis_mapping_element_t *,
  31     __nis_mapping_element_t *);
  32 extern bool_t make_fqdn(__nis_object_dn_t *, const char *);
  33 extern bool_t make_full_dn(char **, const char *);
  34 extern void append_dot(char **);
  35 extern void append_comma(char **);
  36 extern __nis_mapping_rule_t **dup_mapping_rules(__nis_mapping_rule_t **,
  37     int n_rules);
  38 extern __nis_mapping_rule_t *dup_mapping_rule(__nis_mapping_rule_t *);
  39 
  40 #ifdef __cplusplus
  41 }
  42 #endif
  43 
  44 #endif /* _NIS_PARSE_LDAP_UTIL_H */