s4-ldb: declate ldb_val_to_time()
authorAndrew Tridgell <tridge@samba.org>
Tue, 29 Dec 2009 00:39:05 +0000 (11:39 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 1 Jan 2010 21:16:55 +0000 (08:16 +1100)
source4/lib/ldb/include/ldb.h

index c8bfa24832703576f8a531bec85ecaf77f0484f7..1958fd740ba1e49616b1c8f3ac5f020fd71e1af5 100644 (file)
@@ -1950,6 +1950,12 @@ char *ldb_timestring(TALLOC_CTX *mem_ctx, time_t t);
 */
 time_t ldb_string_to_time(const char *s);
 
+/**
+  convert a LDAP GeneralizedTime string in ldb_val format to a
+  time_t.
+*/
+int ldb_val_to_time(const struct ldb_val *v, time_t *t);
+
 /**
    Convert a time structure to a string