]> git.sur5r.net Git - openldap/blobdiff - include/lber_pvt.h
subtreeSpecification syntax change : -binary +validator
[openldap] / include / lber_pvt.h
index f03d4e8cb8c78cb36c485123931405686d012c08..7f5a141e1fbcdb23a3656a896b7462cd12604b37 100644 (file)
@@ -1,6 +1,6 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -83,8 +83,11 @@ ber_pvt_socket_set_nonblock LDAP_P(( ber_socket_t sd, int nb ));
 #define ber_strccmp(s,c) \
        ( (s)[0] == (c) && (s)[1] == '\0' )
 
-LBER_F( char * )
-ber_bvchr LDAP_P(( struct berval *bv, char c ));
+#define ber_bvchr(bv,c) \
+       memchr( (bv)->bv_val, (c), (bv)->bv_len )
+
+#define BER_BVC(x)     { sizeof( (x) ) - 1, (x) }
+#define BER_BVNULL     { 0L, NULL }
 
 LDAP_END_DECL