Diff for /include/lber.h between versions 1.99 and 1.99.2.8

version 1.99, 2006/02/14 22:18:12 version 1.99.2.8, 2009/08/13 00:56:58
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/include/lber.h,v 1.98 2006/01/03 22:12:05 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/include/lber.h,v 1.99.2.7 2009/08/02 21:06:33 quanah Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1998-2006 The OpenLDAP Foundation.   * Copyright 1998-2009 The OpenLDAP Foundation.
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
Line 138  typedef struct lber_memory_fns { Line 138  typedef struct lber_memory_fns {
 #define LBER_SB_OPT_NEEDS_WRITE         12  #define LBER_SB_OPT_NEEDS_WRITE         12
 #define LBER_SB_OPT_GET_MAX_INCOMING    13  #define LBER_SB_OPT_GET_MAX_INCOMING    13
 #define LBER_SB_OPT_SET_MAX_INCOMING    14  #define LBER_SB_OPT_SET_MAX_INCOMING    14
   
   /* Only meaningful ifdef LDAP_PF_LOCAL_SENDMSG */
   #define LBER_SB_OPT_UNGET_BUF   15
   
 /* Largest option used by the library */  /* Largest option used by the library */
 #define LBER_SB_OPT_OPT_MAX             14  #define LBER_SB_OPT_OPT_MAX             15
   
 /* LBER IO operations stacking levels */  /* LBER IO operations stacking levels */
 #define LBER_SBIOD_LEVEL_PROVIDER       10  #define LBER_SBIOD_LEVEL_PROVIDER       10
Line 161  LBER_V( char ) ber_pvt_opt_on; Line 165  LBER_V( char ) ber_pvt_opt_on;
   
 typedef struct berelement BerElement;  typedef struct berelement BerElement;
 typedef struct sockbuf Sockbuf;  typedef struct sockbuf Sockbuf;
 typedef struct seqorset Seqorset;  
   
 typedef struct sockbuf_io Sockbuf_IO;  typedef struct sockbuf_io Sockbuf_IO;
   
Line 225  LBER_F( void ) Line 228  LBER_F( void )
 ber_dump LDAP_P((  ber_dump LDAP_P((
         BerElement *ber, int inout ));          BerElement *ber, int inout ));
   
 LBER_F( void )  
 ber_sos_dump LDAP_P((  
         Seqorset *sos ));  
   
 /*  /*
  * in decode.c:   * in decode.c:
  */   */
Line 252  ber_peek_tag LDAP_P(( Line 251  ber_peek_tag LDAP_P((
         ber_len_t *len ));          ber_len_t *len ));
   
 LBER_F( ber_tag_t )  LBER_F( ber_tag_t )
   ber_skip_element LDAP_P((
           BerElement *ber,
           struct berval *bv ));
   
   LBER_F( ber_tag_t )
   ber_peek_element LDAP_P((
           LDAP_CONST BerElement *ber,
           struct berval *bv ));
   
   LBER_F( ber_tag_t )
 ber_get_int LDAP_P((  ber_get_int LDAP_P((
         BerElement *ber,          BerElement *ber,
         ber_int_t *num ));          ber_int_t *num ));
Line 267  ber_get_stringb LDAP_P(( Line 276  ber_get_stringb LDAP_P((
         char *buf,          char *buf,
         ber_len_t *len ));          ber_len_t *len ));
   
   #define LBER_BV_ALLOC   0x01    /* allocate/copy result, otherwise in-place */
   #define LBER_BV_NOTERM  0x02    /* omit NUL-terminator if parsing in-place */
   
 LBER_F( ber_tag_t )  LBER_F( ber_tag_t )
 ber_get_stringbv LDAP_P((  ber_get_stringbv LDAP_P((
         BerElement *ber,          BerElement *ber,
         struct berval *bv,          struct berval *bv,
         int alloc ));          int options ));
   
 LBER_F( ber_tag_t )  LBER_F( ber_tag_t )
 ber_get_stringa LDAP_P((  ber_get_stringa LDAP_P((
Line 316  ber_scanf LDAP_P(( Line 328  ber_scanf LDAP_P((
         LDAP_CONST char *fmt,          LDAP_CONST char *fmt,
         ... ));          ... ));
   
   LBER_F( int )
   ber_decode_oid LDAP_P((
           struct berval *in,
           struct berval *out ));
   
 /*  /*
  * in encode.c   * in encode.c
  */   */
   LBER_F( int )
   ber_encode_oid LDAP_P((
           struct berval *in,
           struct berval *out ));
   
 typedef int (*BEREncodeCallback) LDAP_P((  typedef int (*BEREncodeCallback) LDAP_P((
         BerElement *ber,          BerElement *ber,
         void *data ));          void *data ));
Line 402  ber_printf LDAP_P(( Line 424  ber_printf LDAP_P((
  */   */
   
 LBER_F( ber_slen_t )  LBER_F( ber_slen_t )
   ber_skip_data LDAP_P((
           BerElement *ber,
           ber_len_t len ));
   
   LBER_F( ber_slen_t )
 ber_read LDAP_P((  ber_read LDAP_P((
         BerElement *ber,          BerElement *ber,
         char *buf,          char *buf,
Line 412  ber_write LDAP_P(( Line 439  ber_write LDAP_P((
         BerElement *ber,          BerElement *ber,
         LDAP_CONST char *buf,          LDAP_CONST char *buf,
         ber_len_t len,          ber_len_t len,
         int nosos ));          int zero ));    /* nonzero is unsupported from OpenLDAP 2.4.18 */
   
 LBER_F( void )  LBER_F( void )
 ber_free LDAP_P((  ber_free LDAP_P((
Line 423  LBER_F( void ) Line 450  LBER_F( void )
 ber_free_buf LDAP_P(( BerElement *ber ));  ber_free_buf LDAP_P(( BerElement *ber ));
   
 LBER_F( int )  LBER_F( int )
 ber_flush LDAP_P((  ber_flush2 LDAP_P((
         Sockbuf *sb,          Sockbuf *sb,
         BerElement *ber,          BerElement *ber,
         int freeit ));          int freeit ));
   #define LBER_FLUSH_FREE_NEVER           (0x0)   /* traditional behavior */
   #define LBER_FLUSH_FREE_ON_SUCCESS      (0x1)   /* traditional behavior */
   #define LBER_FLUSH_FREE_ON_ERROR        (0x2)
   #define LBER_FLUSH_FREE_ALWAYS          (LBER_FLUSH_FREE_ON_SUCCESS|LBER_FLUSH_FREE_ON_ERROR)
   
   LBER_F( int )
   ber_flush LDAP_P((
           Sockbuf *sb,
           BerElement *ber,
           int freeit )); /* DEPRECATED */
   
 LBER_F( BerElement * )  LBER_F( BerElement * )
 ber_alloc LDAP_P(( void )); /* DEPRECATED */  ber_alloc LDAP_P(( void )); /* DEPRECATED */
Line 597  LBER_F( char * ) Line 634  LBER_F( char * )
 ber_strdup LDAP_P((  ber_strdup LDAP_P((
         LDAP_CONST char * ));          LDAP_CONST char * ));
   
   LBER_F( ber_len_t )
   ber_strnlen LDAP_P((
           LDAP_CONST char *s, ber_len_t len ));
   
   LBER_F( char * )
   ber_strndup LDAP_P((
           LDAP_CONST char *s, ber_len_t l ));
   
 LBER_F( struct berval * )  LBER_F( struct berval * )
 ber_bvreplace LDAP_P((  ber_bvreplace LDAP_P((
         struct berval *dst, LDAP_CONST struct berval *src ));          struct berval *dst, LDAP_CONST struct berval *src ));

Removed from v.1.99  
changed lines
  Added in v.1.99.2.8


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org