Sha256: 027269d2f0d3fac34dbb7431cb65e771fd9aeb0b1bd711bb022f565db01abf59

Contents?: true

Size: 979 Bytes

Versions: 3

Compression:

Stored size: 979 Bytes

Contents

#include "wdm.h"

#include "entry.h"
#include "queue.h"
#include "monitor.h"

#include "rb_monitor.h"
#include "rb_change.h"

// ----------------------------------------------------------
// Global variables
// ----------------------------------------------------------

VALUE mWDM;

VALUE eWDM_Error;
VALUE eWDM_MonitorRunningError;
VALUE eWDM_InvalidDirectoryError;

ID wdm_rb_sym_call;
ID wdm_rb_sym_at_file;
ID wdm_rb_sym_at_type;
ID wdm_rb_sym_added;
ID wdm_rb_sym_modified;
ID wdm_rb_sym_removed;
ID wdm_rb_sym_renamed_old_file;
ID wdm_rb_sym_renamed_new_file;

rb_encoding *wdm_rb_enc_utf8;

// ----------------------------------------------------------

void
Init_wdm() {
    WDM_DEBUG("Registering WDM with Ruby!");

    wdm_rb_enc_utf8 = rb_utf8_encoding();

    mWDM = rb_define_module("WDM");

    eWDM_Error = rb_define_class_under(mWDM, "Error", rb_eStandardError);

    wdm_rb_monitor_init();
    wdm_rb_change_init();
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wdm-0.0.2-x86-mingw32 ext/wdm/wdm.c
wdm-0.0.2-mingw32 ext/wdm/wdm.c
wdm-0.0.1 ext/wdm/wdm.c