wireplumber/modules
George Kiagiadakis 8892204f24 wplua/sandbox: support mixing static methods and constructors in class identifiers
Global class identifiers, such as "Node", "SessionItem", "Conf", etc
are so far defined either as methods, which are constructors for
the GObject class, or as tables, which contain "static" methods, i.e.
methods that can be called without an instance.

In some cases, we may want to mix a class being both instantiatable
with a constructor and also have static methods. To support this,
allow the class identifier be declared as a table with the constructor
being defined as the "__new" method. This change allows calling the
table as a method and execute "__new" underneath.

For instance:
```
json = Conf.get_section_as_json("foobar") -- static method
conf = Conf("/foo/bar") -- constructor, equivalent to Conf.__new("/foo/bar")
```

See also !629
2024-04-09 13:15:50 +00:00
..
module-lua-scripting wplua/sandbox: support mixing static methods and constructors in class identifiers 2024-04-09 13:15:50 +00:00
module-reserve-device dbus: refactor WpDBus into a plugin called dbus-connection 2023-06-20 12:39:29 +03:00
dbus-connection-state.h dbus: refactor WpDBus into a plugin called dbus-connection 2023-06-20 12:39:29 +03:00
meson.build meson: move the common CFLAGS to project-wide scope 2024-03-09 15:58:01 +02:00
module-dbus-connection.c dbus: refactor WpDBus into a plugin called dbus-connection 2023-06-20 12:39:29 +03:00
module-default-nodes-api.c metadata: remove wp_metadata_iterator_item_extract() API 2024-02-28 08:15:17 -05:00
module-file-monitor-api.c core: change the component arguments to be WpSpaJson instead of GVariant 2023-05-25 18:29:58 +03:00
module-log-settings.c log: rename back to wp_log_set_level 2024-01-13 16:33:05 +00:00
module-logind.c core: change the component arguments to be WpSpaJson instead of GVariant 2023-05-25 18:29:58 +03:00
module-mixer-api.c m-mixer-api: use gboolean instead of bool 2024-03-04 17:22:03 +00:00
module-portal-permissionstore.c m-portal-permissionstore: improve the warnings printed due to remote errors 2024-03-25 13:51:46 +02:00
module-settings.c m-settings: remove all persistent settings if key is null 2024-03-23 09:39:45 +00:00
module-si-audio-adapter.c si-linkables: do not fully reset when the underlying proxy is destroyed 2024-03-12 12:44:32 +02:00
module-si-audio-virtual.c Merge branch 'master' into next 2023-12-23 18:34:00 +02:00
module-si-node.c si-linkables: do not fully reset when the underlying proxy is destroyed 2024-03-12 12:44:32 +02:00
module-si-standard-link.c linking: improve link failure & debug messages 2024-03-25 09:55:13 +02:00
module-standard-event-source.c m-std-event-source: cancel events when the node associated with the si dies 2024-03-22 15:35:22 +02:00