From 15eda1c504dfe9321eb7bec5bc365ee22a6c5903 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 26 Jul 2011 19:41:14 -0400 Subject: - remove format_* functions that didn't need to be exported - make SDN lists/queues also have a sorted companion which we can use for presence testing --- src/format.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/format.h') diff --git a/src/format.h b/src/format.h index fb5834b..b5dbf3e 100644 --- a/src/format.h +++ b/src/format.h @@ -34,7 +34,7 @@ struct format_ref_attr_list { struct format_ref_attr_list_link { char *attribute, *filter_str; Slapi_Filter *filter; - struct slapi_dn **base_sdn_list; + struct slapi_dn **base_sdn_list, **base_sdn_list2; } *links; int n_links; }; @@ -49,12 +49,9 @@ void format_free_ref_attr_list(struct format_ref_attr_list **); struct format_ref_attr_list ** format_dup_ref_attr_list(struct format_ref_attr_list **); -void format_free_sdn_list(struct slapi_dn **list); -struct slapi_dn **format_dup_sdn_list(struct slapi_dn **list); -struct slapi_dn **format_make_sdn_list(char **list); -struct slapi_dn **format_add_sdn_list(struct slapi_dn ***list, const char *dn); -struct slapi_dn **format_add_sdn_list_sorted(struct slapi_dn ***list, - const char *dn); +void format_free_sdn_list(struct slapi_dn **list, struct slapi_dn **list2); +void format_add_sdn_list(struct slapi_dn ***list, struct slapi_dn ***list2, + const char *dn); void format_free_data(char *data); char *format_get_data(struct plugin_state *state, struct slapi_entry *e, -- cgit