No description
Find a file
Michał Zieliński 9aedf3c455
Merge pull request #24 from SolitudeSF/no-link
Remove redundant link directive
2024-12-21 22:12:03 +00:00
dbus Bool serialization fix. Fix tests. Minor style fixes. 2024-08-30 20:40:23 +03:00
include/dbus reorganize, add nimble manifest 2015-06-24 00:25:12 +02:00
interfaces generate better wrapper code 2015-07-19 00:42:59 +02:00
tests Bool serialization fix. Fix tests. Minor style fixes. 2024-08-30 20:40:23 +03:00
tools use cdecl convention when generating bindings 2015-09-16 18:21:21 +02:00
.gitignore include generated heeader code 2015-07-18 23:55:03 +02:00
dbus.nim Remove redundant link directive 2024-12-22 00:06:22 +02:00
dbus.nim.cfg more wrapper generation 2015-07-05 18:19:10 +02:00
dbus.nimble Add string formatting procs for DbusType and DbusValue 2020-01-21 20:06:48 -05:00
genbinding.nim parse functions return values 2015-07-18 23:54:34 +02:00
LICENSE Initial commit 2015-05-31 19:36:24 +02:00
README.md Document and simplify test-running requirements 2019-12-30 15:39:20 -05:00

nim-dbus

libdbus binding for Nim

Testing

The tests rely on the Python dbus service found in tests/simple_service.py. Use one of the sections below to get an environment prepared to run the Python script, then run:

python tests/simple_service.py

Then run

nimble test

Docker

docker run --rm -it --cap-add ipc_lock -v $(pwd):/code -w /code nimlang/nim /bin/bash

Within the running container:

apt-get update -q
apt-get install -y dbus libdbus-1-dev python-gi python-dbus
dbus-run-session -- bash
python tests/simple_service.py &

Resources

http://www.matthew.ath.cx/misc/dbus - libdbus tutorial

http://lists.freedesktop.org/archives/dbus/2007-October/008859.html - simplest loop