From 4553ee7011317554974a3cb8142c748f820f6e6b Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 19 Jun 2009 19:50:25 -0400 Subject: Expose sysdb function to parse sysdb_attrs --- server/db/sysdb.c | 4 ++-- server/db/sysdb.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/db/sysdb.c b/server/db/sysdb.c index bb39c0643..1951a9b3b 100644 --- a/server/db/sysdb.c +++ b/server/db/sysdb.c @@ -52,8 +52,8 @@ struct sysdb_attrs *sysdb_new_attrs(TALLOC_CTX *memctx) return talloc_zero(memctx, struct sysdb_attrs); } -static int sysdb_attrs_get_el(struct sysdb_attrs *attrs, const char *name, - struct ldb_message_element **el) +int sysdb_attrs_get_el(struct sysdb_attrs *attrs, const char *name, + struct ldb_message_element **el) { struct ldb_message_element *e = NULL; int i; diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 2696dfaf9..35a17dddf 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -149,6 +149,8 @@ int sysdb_attrs_add_uint32(struct sysdb_attrs *attrs, const char *name, uint32_t value); int sysdb_attrs_add_time_t(struct sysdb_attrs *attrs, const char *name, time_t value); +int sysdb_attrs_get_el(struct sysdb_attrs *attrs, const char *name, + struct ldb_message_element **el); /* convert an ldb error into an errno error */ int sysdb_error_to_errno(int ldberr); -- cgit