diff options
Diffstat (limited to 'src/carbon.h')
-rw-r--r-- | src/carbon.h | 18 |
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 |