wp: rename debug.{h,c} to log.{h,c}

Also rename the intermediate lua api table WpDebug -> WpLog

Keeps things more consistent with the function names (wp_log*),
with the lua api (Log.*) and with pipewire using log.{h,c} as well.
After all, these functions are for logging...
This commit is contained in:
George Kiagiadakis
2021-05-06 15:45:13 +03:00
parent 157d4d95c9
commit 257d5cba47
21 changed files with 25 additions and 25 deletions

View File

@@ -202,7 +202,7 @@ static const luaL_Reg core_funcs[] = {
{ NULL, NULL }
};
/* WpDebug */
/* WpLog */
static int
log_log (lua_State *L, GLogLevelFlags lvl)
@@ -1264,7 +1264,7 @@ wp_lua_scripting_api_init (lua_State *L)
lua_setglobal (L, "GLib");
luaL_newlib (L, log_funcs);
lua_setglobal (L, "WpDebug");
lua_setglobal (L, "WpLog");
luaL_newlib (L, core_funcs);
lua_setglobal (L, "WpCore");