src/R_init_gmapR.c
b22faf0d
 #include <R_ext/Rdynload.h>
 
 #include "gmapR.h"
 
 #define CALLMETHOD_DEF(fun, numArgs) {#fun, (DL_FUNC) &fun, numArgs}
 
 static const R_CallMethodDef callMethods[] = {
 
   /* bamtally.c */
685d60e3
   CALLMETHOD_DEF(R_Bamtally_iit, 26),
8418591e
   CALLMETHOD_DEF(R_tally_iit_parse, 6),
3f899953
   
b22faf0d
   /* bamreader.c */
   CALLMETHOD_DEF(R_Bamread_new, 1),
86afb162
 
   /* genome.c */
   CALLMETHOD_DEF(R_Genome_getSeq, 6),
b22faf0d
   
   {NULL, NULL, 0}
 };
 
 void R_init_gmapR(DllInfo *info)
 {
   R_registerRoutines(info, NULL, callMethods, NULL, NULL);
 }