localsvc.h 947 B

123456789101112131415161718192021222324252627
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. ***************************************************************************
  5. * Copyright (C) 2006 International Business Machines Corporation *
  6. * and others. All rights reserved. *
  7. ***************************************************************************
  8. */
  9. #ifndef LOCALSVC_H
  10. #define LOCALSVC_H
  11. #include "unicode/utypes.h"
  12. #if defined(U_LOCAL_SERVICE_HOOK) && U_LOCAL_SERVICE_HOOK
  13. /**
  14. * Prototype for user-supplied service hook. This function is expected to return
  15. * a type of factory object specific to the requested service.
  16. *
  17. * @param what service-specific string identifying the specific user hook
  18. * @param status error status
  19. * @return a service-specific hook, or NULL on failure.
  20. */
  21. U_CAPI void* uprv_svc_hook(const char *what, UErrorCode *status);
  22. #endif
  23. #endif