Commit 257d5cba authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

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...
parent 157d4d95
......@@ -16,7 +16,7 @@
#include "device.h"
#include "node.h"
#include "core.h"
#include "debug.h"
#include "log.h"
#include "error.h"
#include "private/pipewire-object-mixin.h"
......
......@@ -15,7 +15,7 @@
#include "endpoint-link.h"
#include "session.h"
#include "debug.h"
#include "log.h"
#include "error.h"
#include "wpenums.h"
#include "private/pipewire-object-mixin.h"
......
......@@ -19,7 +19,7 @@
#include "session.h"
#include "object-manager.h"
#include "error.h"
#include "debug.h"
#include "log.h"
#include "wpenums.h"
#include "spa-type.h"
#include "si-factory.h"
......
......@@ -7,11 +7,11 @@
*/
/**
* SECTION: debug
* SECTION: log
* @title: Debug Logging
*/
#include "debug.h"
#include "log.h"
#include "spa-pod.h"
#include "proxy.h"
#include <pipewire/pipewire.h>
......
......@@ -6,8 +6,8 @@
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_DEBUG_H__
#define __WIREPLUMBER_DEBUG_H__
#ifndef __WIREPLUMBER_LOG_H__
#define __WIREPLUMBER_LOG_H__
#include <glib-object.h>
#include "defs.h"
......
......@@ -3,7 +3,6 @@ wp_lib_sources = files(
'client.c',
'component-loader.c',
'core.c',
'debug.c',
'device.c',
'endpoint.c',
'endpoint-link.c',
......@@ -11,6 +10,7 @@ wp_lib_sources = files(
'global-proxy.c',
'iterator.c',
'link.c',
'log.c',
'metadata.c',
'node.c',
'object.c',
......@@ -37,7 +37,6 @@ wp_lib_headers = files(
'client.h',
'component-loader.h',
'core.h',
'debug.h',
'defs.h',
'device.h',
'endpoint.h',
......@@ -46,6 +45,7 @@ wp_lib_headers = files(
'global-proxy.h',
'iterator.h',
'link.h',
'log.h',
'metadata.h',
'node.h',
'object.h',
......
......@@ -15,7 +15,7 @@
#include "metadata.h"
#include "core.h"
#include "debug.h"
#include "log.h"
#include "error.h"
#include "wpenums.h"
......
......@@ -16,7 +16,7 @@
#include "node.h"
#include "core.h"
#include "object-manager.h"
#include "debug.h"
#include "log.h"
#include "wpenums.h"
#include "private/pipewire-object-mixin.h"
......
......@@ -17,7 +17,7 @@
#include "global-proxy.h"
#include "session-item.h"
#include "proxy-interfaces.h"
#include "debug.h"
#include "log.h"
#include "error.h"
#include <pipewire/pipewire.h>
......
......@@ -41,7 +41,7 @@
#define G_LOG_DOMAIN "wp-object-manager"
#include "object-manager.h"
#include "debug.h"
#include "log.h"
#include "private/registry.h"
#include <pipewire/pipewire.h>
......
......@@ -14,7 +14,7 @@
#define G_LOG_DOMAIN "wp-object"
#include "object.h"
#include "debug.h"
#include "log.h"
#include "core.h"
struct _WpFeatureActivationTransition
......
......@@ -14,7 +14,7 @@
#define G_LOG_DOMAIN "wp-plugin"
#include "plugin.h"
#include "debug.h"
#include "log.h"
#include "private/registry.h"
enum {
......
......@@ -12,7 +12,7 @@
#include "core.h"
#include "spa-type.h"
#include "spa-pod.h"
#include "debug.h"
#include "log.h"
#include "error.h"
#include <spa/utils/result.h>
......
......@@ -14,7 +14,7 @@
#define G_LOG_DOMAIN "wp-proxy"
#include "proxy.h"
#include "debug.h"
#include "log.h"
#include <pipewire/pipewire.h>
#include <spa/utils/hook.h>
......
......@@ -14,7 +14,7 @@
#define G_LOG_DOMAIN "wp-si"
#include "session-item.h"
#include "debug.h"
#include "log.h"
#include "error.h"
#include "private/registry.h"
......
......@@ -16,7 +16,7 @@
#include "session.h"
#include "object-manager.h"
#include "error.h"
#include "debug.h"
#include "log.h"
#include "wpenums.h"
#include "private/pipewire-object-mixin.h"
......
......@@ -23,7 +23,7 @@
#include <fcntl.h>
#include <sys/stat.h>
#include "debug.h"
#include "log.h"
#include "state.h"
enum {
......
......@@ -34,7 +34,7 @@
#define G_LOG_DOMAIN "wp-transition"
#include "transition.h"
#include "debug.h"
#include "log.h"
#include "error.h"
typedef struct _WpTransitionPrivate WpTransitionPrivate;
......
......@@ -12,7 +12,6 @@
#include "client.h"
#include "component-loader.h"
#include "core.h"
#include "debug.h"
#include "device.h"
#include "endpoint.h"
#include "endpoint-link.h"
......@@ -20,6 +19,7 @@
#include "global-proxy.h"
#include "iterator.h"
#include "link.h"
#include "log.h"
#include "metadata.h"
#include "node.h"
#include "object-interest.h"
......
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment