aboutsummaryrefslogtreecommitdiff
path: root/src/nng_compat.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-22 10:27:29 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-22 10:27:29 -0800
commitbc06cb896b25c86e646017548f357f0e7724531e (patch)
tree03e76d651bc11f8474f0f78ebfabe9cc5beef73a /src/nng_compat.c
parentb93d5759c9b39ff153a14d474d800cd981f7dc97 (diff)
downloadnng-bc06cb896b25c86e646017548f357f0e7724531e.tar.gz
nng-bc06cb896b25c86e646017548f357f0e7724531e.tar.bz2
nng-bc06cb896b25c86e646017548f357f0e7724531e.zip
Start on compat stuff.
Diffstat (limited to 'src/nng_compat.c')
-rw-r--r--src/nng_compat.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/nng_compat.c b/src/nng_compat.c
new file mode 100644
index 00000000..94a0b3aa
--- /dev/null
+++ b/src/nng_compat.c
@@ -0,0 +1,25 @@
+//
+// Copyright 2017 Garrett D'Amore <garrett@damore.org>
+//
+// This software is supplied under the terms of the MIT License, a
+// copy of which should be located in the distribution where this
+// file was obtained (LICENSE.txt). A copy of the license may also be
+// found online at https://opensource.org/licenses/MIT.
+//
+
+#include "nng.h"
+#include "nn_compat.h"
+
+// This file provides the "public" API. This is a thin wrapper around
+// internal API functions. We use the public prefix instead of internal,
+// to indicate that these interfaces are intended for applications to use
+// directly.
+//
+// Anything not defined in this file, applications have no business using.
+// Pretty much every function calls the nni_platform_init to check against
+// fork related activity.
+
+int
+nn_socket(int domain, int protocol)
+{
+} \ No newline at end of file