]> git.sur5r.net Git - openldap/blobdiff - include/srchpref.h
Misc DESC updates
[openldap] / include / srchpref.h
index 6b26b06d41e054ce34dc7ae149c4e62cbad845d4..f711bb4dc3a0129aff8354f3dbc20815888b462b 100644 (file)
@@ -1,4 +1,15 @@
+/* $OpenLDAP$ */
 /*
+ * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.  A copy of this license is available at
+ * http://www.OpenLDAP.org/license.html or in file LICENSE in the
+ * top-level directory of the distribution.
+ */
+/* Portions
  * Copyright (c) 1993, 1994 Regents of the University of Michigan.
  * All rights reserved.
  *
@@ -13,6 +24,7 @@
  * 16 May 1994 by Gordon Good
  */
 
+/* DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED */
 
 #ifndef _SRCHPREF_H
 #define _SRCHPREF_H
@@ -51,8 +63,6 @@ struct ldap_searchobj {
        struct ldap_searchobj           *so_next;
 };
 
-#define NULLSEARCHOBJ                  ((struct ldap_searchobj *)0)
-
 /*
  * global search object options
  */
@@ -70,22 +80,22 @@ struct ldap_searchobj {
 #define LDAP_SEARCHPREF_ERR_FILE       4
 
 
-LDAP_F int
+LDAP_F( int )
 ldap_init_searchprefs LDAP_P(( char *file,
        struct ldap_searchobj **solistp ));
 
-LDAP_F int
+LDAP_F( int )
 ldap_init_searchprefs_buf LDAP_P(( char *buf,
-       long buflen,
+       ber_len_t buflen,
        struct ldap_searchobj **solistp ));
 
-LDAP_F void
+LDAP_F( void )
 ldap_free_searchprefs LDAP_P(( struct ldap_searchobj *solist ));
 
-LDAP_F struct ldap_searchobj *
+LDAP_F( struct ldap_searchobj * )
 ldap_first_searchobj LDAP_P(( struct ldap_searchobj *solist ));
 
-LDAP_F struct ldap_searchobj *
+LDAP_F( struct ldap_searchobj * )
 ldap_next_searchobj LDAP_P(( struct ldap_searchobj *sollist,
        struct ldap_searchobj *so ));