/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include<ch.h>
    ...

EXPORTCH void functionName_chdl(void *varg) {
  ChInterp_t interp;
  ChVaList_t ap;
  data_type1 param;
  data_type2 arg;

  /* get the arguments from the Ch function */
  Ch_VaStart(interp, ap, varg);
  param = Ch_VaArg(interp, ap, data_type1); 
  arg = Ch_VaArg(interp, ap, data_type2); 

  functionName(param, arg);
  Ch_VaEnd(interp, ap);
}
