extern "C" JSOBJ getExports() { JSOBJT o = ObjectTemplate::New(); o->Set(String::New("REPLY_STRING"), Integer::New(REDIS_REPLY_STRING)); o->Set(String::New("REPLY_ARRAY"), Integer::New(REDIS_REPLY_ARRAY)); o->Set(String::New("REPLY_INTEGER"), Integer::New(REDIS_REPLY_INTEGER)); o->Set(String::New("REPLY_NIL"), Integer::New(REDIS_REPLY_NIL)); o->Set(String::New("REPLY_STATUS"), Integer::New(REDIS_REPLY_STATUS)); o->Set(String::New("REPLY_ERROR"), Integer::New(REDIS_REPLY_ERROR)); o->Set(String::New("connect"), FunctionTemplate::New(connect)); o->Set(String::New("close"), FunctionTemplate::New(close)); o->Set(String::New("query"), FunctionTemplate::New(query)); o->Set(String::New("command"), FunctionTemplate::New(command)); o->Set(String::New("freeReply"), FunctionTemplate::New(freeReply)); o->Set(String::New("getType"), FunctionTemplate::New(getType)); o->Set(String::New("getInteger"), FunctionTemplate::New(getInteger)); o->Set(String::New("getString"), FunctionTemplate::New(getString)); o->Set(String::New("getElements"), FunctionTemplate::New(getElements)); o->Set(String::New("getElement"), FunctionTemplate::New(getElement)); return o->NewInstance(); }