ext/wdm/rb_monitor.h in wdm-0.1.0 vs ext/wdm/rb_monitor.h in wdm-0.1.1

- old
+ new

@@ -1,40 +1,40 @@ -#ifndef WDM_RB_MONITOR_H -#define WDM_RB_MONITOR_H - -#ifdef __cplusplus -extern "C" { -#endif // __cplusplus - -// --------------------------------------------------------- -// Constants -// --------------------------------------------------------- - -#define WDM_MONITOR_FLAGS_DEFAULT \ - FILE_NOTIFY_CHANGE_FILE_NAME \ - | FILE_NOTIFY_CHANGE_DIR_NAME \ - | FILE_NOTIFY_CHANGE_LAST_WRITE - -// ---------------------------------------------------------- -// Global variables -// ---------------------------------------------------------- - -extern VALUE cWDM_Monitor; - -extern VALUE eWDM_UnknownFlagError; -extern VALUE eWDM_MonitorRunningError; -extern VALUE eWDM_InvalidDirectoryError; -extern VALUE eWDM_UnwatchableDirectoryError; - -// --------------------------------------------------------- -// Prototypes -// --------------------------------------------------------- - -void wdm_rb_monitor_init(); - -// --------------------------------------------------------- - -#ifdef __cplusplus -} -#endif // __cplusplus - +#ifndef WDM_RB_MONITOR_H +#define WDM_RB_MONITOR_H + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// --------------------------------------------------------- +// Constants +// --------------------------------------------------------- + +#define WDM_MONITOR_FLAGS_DEFAULT \ + FILE_NOTIFY_CHANGE_FILE_NAME \ + | FILE_NOTIFY_CHANGE_DIR_NAME \ + | FILE_NOTIFY_CHANGE_LAST_WRITE + +// ---------------------------------------------------------- +// Global variables +// ---------------------------------------------------------- + +extern VALUE cWDM_Monitor; + +extern VALUE eWDM_UnknownFlagError; +extern VALUE eWDM_MonitorRunningError; +extern VALUE eWDM_InvalidDirectoryError; +extern VALUE eWDM_UnwatchableDirectoryError; + +// --------------------------------------------------------- +// Prototypes +// --------------------------------------------------------- + +void wdm_rb_monitor_init(); + +// --------------------------------------------------------- + +#ifdef __cplusplus +} +#endif // __cplusplus + #endif // WDM_RB_MONITOR_H \ No newline at end of file