add prefix skynet to c module

This commit is contained in:
Cloud Wu
2017-06-01 11:56:16 +08:00
parent f1ed482001
commit f9f009a4c1
16 changed files with 37 additions and 69 deletions

View File

@@ -508,7 +508,7 @@ lconcat(lua_State *L) {
}
LUAMOD_API int
luaopen_cluster_core(lua_State *L) {
luaopen_skynet_cluster_core(lua_State *L) {
luaL_Reg l[] = {
{ "packrequest", lpackrequest },
{ "packpush", lpackpush },

View File

@@ -904,7 +904,7 @@ int lsha1(lua_State *L);
int lhmac_sha1(lua_State *L);
LUAMOD_API int
luaopen_crypt(lua_State *L) {
luaopen_skynet_crypt(lua_State *L) {
luaL_checkversion(L);
static int init = 0;
if (!init) {

View File

@@ -271,7 +271,7 @@ static int db_sethook (lua_State *L) {
}
LUAMOD_API int
luaopen_debugchannel(lua_State *L) {
luaopen_skynet_debugchannel(lua_State *L) {
luaL_Reg l[] = {
{ "create", lcreate }, // for write
{ "connect", lconnect }, // for read

View File

@@ -50,7 +50,7 @@ lcurrent(lua_State *L) {
}
LUAMOD_API int
luaopen_memory(lua_State *L) {
luaopen_skynet_memory(lua_State *L) {
luaL_checkversion(L);
luaL_Reg l[] = {

View File

@@ -532,7 +532,7 @@ reply_length(lua_State *L) {
}
LUAMOD_API int
luaopen_mongo_driver(lua_State *L) {
luaopen_skynet_mongo_driver(lua_State *L) {
luaL_checkversion(L);
luaL_Reg l[] ={
{ "query", op_query },

View File

@@ -146,7 +146,7 @@ mc_nextid(lua_State *L) {
}
LUAMOD_API int
luaopen_multicast_core(lua_State *L) {
luaopen_skynet_multicast_core(lua_State *L) {
luaL_Reg l[] = {
{ "pack", mc_packlocal },
{ "unpack", mc_unpacklocal },

View File

@@ -158,7 +158,7 @@ static struct luaL_Reg mysqlauxlib[] = {
};
LUAMOD_API int luaopen_mysqlaux_c (lua_State *L) {
LUAMOD_API int luaopen_skynet_mysqlaux_c (lua_State *L) {
lua_newtable(L);
luaL_setfuncs(L, mysqlauxlib, 0);
return 1;

View File

@@ -465,7 +465,7 @@ ltostring(lua_State *L) {
}
LUAMOD_API int
luaopen_netpack(lua_State *L) {
luaopen_skynet_netpack(lua_State *L) {
luaL_checkversion(L);
luaL_Reg l[] = {
{ "pop", lpop },

View File

@@ -200,7 +200,7 @@ lyield_co(lua_State *L) {
}
LUAMOD_API int
luaopen_profile(lua_State *L) {
luaopen_skynet_profile(lua_State *L) {
luaL_checkversion(L);
luaL_Reg l[] = {
{ "start", lstart },

View File

@@ -765,7 +765,7 @@ lupdate(lua_State *L) {
}
LUAMOD_API int
luaopen_sharedata_core(lua_State *L) {
luaopen_skynet_sharedata_core(lua_State *L) {
luaL_Reg l[] = {
// used by host
{ "new", lnewconf },

View File

@@ -678,7 +678,7 @@ ludp_address(lua_State *L) {
}
LUAMOD_API int
luaopen_socketdriver(lua_State *L) {
luaopen_skynet_socketdriver(lua_State *L) {
luaL_checkversion(L);
luaL_Reg l[] = {
{ "buffer", lnewbuffer },

View File

@@ -235,7 +235,7 @@ lread(lua_State *L) {
}
LUAMOD_API int
luaopen_stm(lua_State *L) {
luaopen_skynet_stm(lua_State *L) {
luaL_checkversion(L);
lua_createtable(L, 0, 3);