aboutsummaryrefslogtreecommitdiff
path: root/src/carbon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/carbon.h')
-rw-r--r--src/carbon.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/carbon.h b/src/carbon.h
new file mode 100644
index 0000000..d98792a
--- /dev/null
+++ b/src/carbon.h
@@ -0,0 +1,17 @@
+#ifndef SKHD_CARBON_H
+#define SKHD_CARBON_H
+
+#include <Carbon/Carbon.h>
+
+struct carbon_event
+{
+ EventTargetRef target;
+ EventHandlerUPP handler;
+ EventTypeSpec type;
+ EventHandlerRef handler_ref;
+ char * volatile process_name;
+};
+
+bool carbon_event_init(struct carbon_event *carbon);
+
+#endif