summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/kext/GypKext/GypKext.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/mac/kext/GypKext/GypKext.c')
-rw-r--r--deps/gyp/test/mac/kext/GypKext/GypKext.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/deps/gyp/test/mac/kext/GypKext/GypKext.c b/deps/gyp/test/mac/kext/GypKext/GypKext.c
new file mode 100644
index 0000000000..9b611b0dc5
--- /dev/null
+++ b/deps/gyp/test/mac/kext/GypKext/GypKext.c
@@ -0,0 +1,16 @@
+// Copyright (c) 2015 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <sys/systm.h>
+#include <mach/mach_types.h>
+
+kern_return_t GypKext_start(kmod_info_t* ki, void* d) {
+ printf("GypKext has started.\n");
+ return KERN_SUCCESS;
+}
+
+kern_return_t GypKext_stop(kmod_info_t* ki, void* d) {
+ printf("GypKext has stopped.\n");
+ return KERN_SUCCESS;
+}