csnpl.h 812 B

12345678910111213141516171819202122232425262728293031
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. /* csnpl.h - interface for csn pending list */
  13. #ifndef CSNPL_H
  14. #define CSNPL_H
  15. #include "slapi-private.h"
  16. typedef struct csnpl CSNPL;
  17. CSNPL* csnplNew ();
  18. void csnplFree (CSNPL **csnpl);
  19. int csnplInsert (CSNPL *csnpl, const CSN *csn);
  20. int csnplRemove (CSNPL *csnpl, const CSN *csn);
  21. CSN* csnplGetMinCSN (CSNPL *csnpl, PRBool *committed);
  22. int csnplCommit (CSNPL *csnpl, const CSN *csn);
  23. CSN *csnplRollUp(CSNPL *csnpl, CSN ** first);
  24. void csnplDumpContent(CSNPL *csnpl, const char *caller);
  25. #endif