diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-03 23:50:12 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-03 23:50:12 -0800 |
| commit | 856c5c8e2aa4e07b2b628dd194a63ae13dae7ae3 (patch) | |
| tree | 881df2438f89137f014d1706124b58d40115a47d /src/core/platform.h | |
| parent | 7ba8f81d551af515864c2c4ca47edf540a5edd32 (diff) | |
| download | nng-856c5c8e2aa4e07b2b628dd194a63ae13dae7ae3.tar.gz nng-856c5c8e2aa4e07b2b628dd194a63ae13dae7ae3.tar.bz2 nng-856c5c8e2aa4e07b2b628dd194a63ae13dae7ae3.zip | |
Working towards TCP support.
Diffstat (limited to 'src/core/platform.h')
| -rw-r--r-- | src/core/platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
