aboutsummaryrefslogtreecommitdiff
path: root/src/carbon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/carbon.h')
-rw-r--r--src/carbon.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/carbon.h b/src/carbon.h
new file mode 100644
index 0000000..8ef9ed4
--- /dev/null
+++ b/src/carbon.h
@@ -0,0 +1,18 @@
+#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;
+};
+
+char *find_process_name_for_pid(pid_t pid);
+bool carbon_event_init(struct carbon_event *carbon);
+
+#endif