Sha256: 3a5c31764a2391a1f527862b6b54ab33f57bf98519850b53ae59ba819dcfc39c

Contents?: true

Size: 977 Bytes

Versions: 49

Compression:

Stored size: 977 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;
VALUE eWDM_UnwatchableDirectoryError;

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_ext()
{
    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

49 entries across 41 versions & 5 rubygems

Version Path
wdm-0.2.0 ext/wdm/wdm.c
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/wdm-0.1.1/ext/wdm/wdm.c
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/wdm-0.1.1/ext/wdm/wdm.c