From 856c5c8e2aa4e07b2b628dd194a63ae13dae7ae3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 3 Jan 2017 23:50:12 -0800 Subject: Working towards TCP support. --- src/core/platform.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/platform.h') diff --git a/src/core/platform.h b/src/core/platform.h index 15ef6843..2134ed97 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -158,6 +158,14 @@ extern void nni_plat_fini(void); // or under a lock protection.) extern uint32_t nni_plat_nextid(void); +// nni_plat_strerror allows the platform to use additional error messages +// for additional error codes. The err code passed in should be the +// equivalent of errno or GetLastError, without the NNG_ESYSERR component. +// The platform should make sure that the returned value will be valid +// after the call returns. (If necessary, thread-local storage can be +// used.) +extern const char *nni_plat_strerror(int); + // Actual platforms we support. This is included up front so that we can // get the specific types that are supplied by the platform. #if defined(PLATFORM_POSIX) -- cgit v1.2.3-70-g09d2