csnpl.h 693 B

1234567891011121314151617181920212223
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright 2001 Sun Microsystems, Inc.
  3. * Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
  4. * All rights reserved.
  5. * END COPYRIGHT BLOCK **/
  6. /* csnpl.h - interface for csn pending list */
  7. #ifndef CSNPL_H
  8. #define CSNPL_H
  9. #include "slapi-private.h"
  10. typedef struct csnpl CSNPL;
  11. CSNPL* csnplNew ();
  12. void csnplFree (CSNPL **csnpl);
  13. int csnplInsert (CSNPL *csnpl, const CSN *csn);
  14. int csnplRemove (CSNPL *csnpl, const CSN *csn);
  15. CSN* csnplGetMinCSN (CSNPL *csnpl, PRBool *committed);
  16. int csnplCommit (CSNPL *csnpl, const CSN *csn);
  17. CSN *csnplRollUp(CSNPL *csnpl, CSN ** first);
  18. void csnplDumpContent(CSNPL *csnpl, const char *caller);
  19. #endif