ucln_io.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. ******************************************************************************
  5. * *
  6. * Copyright (C) 2001-2011, International Business Machines *
  7. * Corporation and others. All Rights Reserved. *
  8. * *
  9. ******************************************************************************
  10. * file name: ucln_io.h
  11. * encoding: UTF-8
  12. * tab size: 8 (not used)
  13. * indentation:4
  14. *
  15. * created on: 2006August11
  16. * created by: George Rhoten
  17. */
  18. #ifndef __UCLN_IO_H__
  19. #define __UCLN_IO_H__
  20. #include "unicode/utypes.h"
  21. #include "ucln.h"
  22. /*
  23. Please keep the order of enums declared in same order
  24. as the functions are suppose to be called. */
  25. typedef enum ECleanupIOType {
  26. UCLN_IO_START = -1,
  27. UCLN_IO_LOCBUND,
  28. UCLN_IO_PRINTF,
  29. UCLN_IO_COUNT /* This must be last */
  30. } ECleanupIOType;
  31. /* Main library cleanup registration function. */
  32. /* See common/ucln.h for details on adding a cleanup function. */
  33. U_CFUNC void U_EXPORT2 ucln_io_registerCleanup(ECleanupIOType type,
  34. cleanupFunc *func);
  35. #endif