#include #include #include #include "objclass/objclass.h" CLS_VER(1,0) CLS_NAME(test) cls_handle_t h_class; cls_method_handle_t h_foo; int foo_method(cls_method_context_t ctx, char *indata, int datalen, char **outdata, int *outdatalen) { int i, r; cls_log("hello world"); cls_log("indata=%s", indata); *outdata = (char *)cls_alloc(128); for (i=0; i