cl5.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. /* cl5.h - changelog related function */
  7. #ifndef CL5_H
  8. #define CL5_H
  9. #include "cl5_api.h" /* changelog access APIs */
  10. typedef struct changelog5Config
  11. {
  12. char *dir;
  13. /* These 2 parameters are needed for changelog trimming. Already present in 5.0 */
  14. char *maxAge;
  15. int maxEntries;
  16. /* the changelog DB configuration parameters are defined as CL5DBConfig in cl5_api.h */
  17. CL5DBConfig dbconfig;
  18. }changelog5Config;
  19. /* initializes changelog*/
  20. int changelog5_init();
  21. /* cleanups changelog data */
  22. void changelog5_cleanup();
  23. /* initializes changelog configurationd */
  24. int changelog5_config_init();
  25. /* cleanups config data */
  26. void changelog5_config_cleanup();
  27. /* reads changelog configuration */
  28. int changelog5_read_config (changelog5Config *config);
  29. /* cleanups the content of the config structure */
  30. void changelog5_config_done (changelog5Config *config);
  31. /* frees the content and the config structure */
  32. void changelog5_config_free (changelog5Config **config);
  33. #endif