about summary refs log tree commit diff
path: root/src/libnsss/nsss_switch_enumerator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnsss/nsss_switch_enumerator.c')
-rw-r--r--src/libnsss/nsss_switch_enumerator.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libnsss/nsss_switch_enumerator.c b/src/libnsss/nsss_switch_enumerator.c
new file mode 100644
index 0000000..ca7d127
--- /dev/null
+++ b/src/libnsss/nsss_switch_enumerator.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <pthread.h>
+
+#include <nsss/nsss-switch.h>
+#include "nsss-switch-internal.h"
+
+nsss_switch_t nsss_switch_enumerator = NSSS_SWITCH_ZERO ;
+pthread_mutex_t nsss_switch_enumerator_mutex = PTHREAD_MUTEX_INITIALIZER ;