Sha256: 0b2ba35f2f0c3bad507a48a2f2634b83fbc1522e9b864b030621c00781daf604

Contents?: true

Size: 1023 Bytes

Versions: 3

Compression:

Stored size: 1023 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

3 entries across 3 versions & 3 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/wdm-0.1.0/ext/wdm/wdm.c
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/wdm-0.1.0/ext/wdm/wdm.c
wdm-0.1.0 ext/wdm/wdm.c