#include <stddef.h>
#include <R_ext/Rdynload.h>
#include "etas.h"

static const R_CMethodDef CEntries[] = {
    {"estimateETASBranchingC", (DL_FUNC) &estimateETASBranchingC, 23, NULL},
    {"estimateSpatialETASBranchingC", (DL_FUNC) &estimateSpatialETASBranchingC, 34, NULL},
    {"estimateETASDirectC", (DL_FUNC) &estimateETASDirectC, 16, NULL},
    {"estimateBranchingC", (DL_FUNC) &estimateBranchingC, 11, NULL},
    {"estimateSpatialBranchingC", (DL_FUNC) &estimateSpatialBranchingC, 17, NULL},
    {"ETASlikelihoodC", (DL_FUNC) &ETASlikelihoodC, 11, NULL},
    {"ETASspatiallikelihoodC", (DL_FUNC) &ETASspatiallikelihoodC, 16, NULL},
    {NULL, NULL, 0, NULL}
};

void R_init_bayesianETAS(DllInfo *dll)
{
    R_registerRoutines(dll, CEntries, NULL, NULL, NULL);
    R_useDynamicSymbols(dll, FALSE);
}
