diff options
author | kotontrion <[email protected]> | 2024-09-18 12:55:40 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-09-18 12:55:40 +0200 |
commit | de096e16da8a76c60b97ca0238a1cd1b545fa295 (patch) | |
tree | 08975b942b899bf4344e6258b03566b3db26d5d1 | |
parent | 18c0a31fa41f925e3324042bea940155ae6bf774 (diff) |
wireplumber: rename get_default_wp to get_default
-rw-r--r-- | examples/js/simple-bar/widget/Bar.tsx | 2 | ||||
-rw-r--r-- | examples/lua/simple-bar/widget/Bar.lua | 2 | ||||
-rw-r--r-- | lib/wireplumber/include/astal/wireplumber/wp.h | 2 | ||||
-rw-r--r-- | lib/wireplumber/src/wireplumber.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/js/simple-bar/widget/Bar.tsx b/examples/js/simple-bar/widget/Bar.tsx index 492ab1d..19e1133 100644 --- a/examples/js/simple-bar/widget/Bar.tsx +++ b/examples/js/simple-bar/widget/Bar.tsx @@ -39,7 +39,7 @@ function Wifi() { } function AudioSlider() { - const speaker = Wp.get_default_wp()?.audio.defaultSpeaker! + const speaker = Wp.get_default()?.audio.defaultSpeaker! return <box className="AudioSlider" css="min-width: 140px"> <icon icon={bind(speaker, "volumeIcon")} /> diff --git a/examples/lua/simple-bar/widget/Bar.lua b/examples/lua/simple-bar/widget/Bar.lua index bf70cd5..56cb060 100644 --- a/examples/lua/simple-bar/widget/Bar.lua +++ b/examples/lua/simple-bar/widget/Bar.lua @@ -72,7 +72,7 @@ local function Wifi() end local function AudioSlider() - local speaker = Wp.get_default_wp().audio.default_speaker + local speaker = Wp.get_default().audio.default_speaker return Widget.Box({ class_name = "AudioSlider", diff --git a/lib/wireplumber/include/astal/wireplumber/wp.h b/lib/wireplumber/include/astal/wireplumber/wp.h index 1ff341c..8d1ea83 100644 --- a/lib/wireplumber/include/astal/wireplumber/wp.h +++ b/lib/wireplumber/include/astal/wireplumber/wp.h @@ -22,7 +22,7 @@ typedef enum { G_DECLARE_FINAL_TYPE(AstalWpWp, astal_wp_wp, ASTAL_WP, WP, GObject) AstalWpWp* astal_wp_wp_get_default(); -AstalWpWp* astal_wp_get_default_wp(); +AstalWpWp* astal_wp_get_default(); AstalWpAudio* astal_wp_wp_get_audio(AstalWpWp* self); AstalWpVideo* astal_wp_wp_get_video(AstalWpWp* self); diff --git a/lib/wireplumber/src/wireplumber.c b/lib/wireplumber/src/wireplumber.c index cc3aa82..6babed1 100644 --- a/lib/wireplumber/src/wireplumber.c +++ b/lib/wireplumber/src/wireplumber.c @@ -352,13 +352,13 @@ AstalWpWp *astal_wp_wp_get_default() { } /** - * astal_wp_get_default_wp + * astal_wp_get_default * * gets the default wireplumber object. * * Returns: (nullable) (transfer none): gets the default wireplumber object. */ -AstalWpWp *astal_wp_get_default_wp() { return astal_wp_wp_get_default(); } +AstalWpWp *astal_wp_get_default() { return astal_wp_wp_get_default(); } static void astal_wp_wp_dispose(GObject *object) { AstalWpWp *self = ASTAL_WP_WP(object); |