#include "BSseq.h"

#include "R_ext/Rdynload.h"
#include "R_ext/Visibility.h"

#define REGISTER(x, i) {#x, (DL_FUNC) &x, i}

extern "C" {

    static const R_CallMethodDef all_call_entries[] = {
        // Validity checking.
        REGISTER(check_M_and_Cov, 2),
        {NULL, NULL, 0}
    };

    void attribute_visible R_init_bsseq(DllInfo *dll) {
        R_registerRoutines(dll, NULL, all_call_entries, NULL, NULL);
        R_useDynamicSymbols(dll, FALSE);
        R_forceSymbols(dll, TRUE);
    }

}