summaryrefslogtreecommitdiff
path: root/lib/bluetooth
diff options
context:
space:
mode:
authorAylur <[email protected]>2025-01-07 20:26:56 +0100
committerGitHub <[email protected]>2025-01-07 20:26:56 +0100
commitfa2d55e2c2ff2ba9e059f774db60aa4709292266 (patch)
treeb7825dac81639007893911024f7ed2fced1ea049 /lib/bluetooth
parentf68d4ca85853c01046ac3d2357ca83bdbdb5f10d (diff)
parent4de428b99fa348b954fb6785390a6bb49c6625f6 (diff)
Merge pull request #225 from matt1432/types
Annotate Vala namespaces to fix gir files
Diffstat (limited to 'lib/bluetooth')
-rw-r--r--lib/bluetooth/config.vala.in1
-rw-r--r--lib/bluetooth/meson.build1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/bluetooth/config.vala.in b/lib/bluetooth/config.vala.in
index 9fce720..f43dba3 100644
--- a/lib/bluetooth/config.vala.in
+++ b/lib/bluetooth/config.vala.in
@@ -1,3 +1,4 @@
+[CCode (gir_namespace = "AstalBluetooth", gir_version = "@API_VERSION@")]
namespace AstalBluetooth {
public const int MAJOR_VERSION = @MAJOR_VERSION@;
public const int MINOR_VERSION = @MINOR_VERSION@;
diff --git a/lib/bluetooth/meson.build b/lib/bluetooth/meson.build
index 347b463..01d2cb1 100644
--- a/lib/bluetooth/meson.build
+++ b/lib/bluetooth/meson.build
@@ -20,6 +20,7 @@ config = configure_file(
input: 'config.vala.in',
output: 'config.vala',
configuration: {
+ 'API_VERSION': api_version,
'VERSION': meson.project_version(),
'MAJOR_VERSION': version_split[0],
'MINOR_VERSION': version_split[1],