Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Lua Bindings to dbus.
C Lua Makefile
branch: master

README.md

DBus for Lua.

ldbus is a C binding to dbus for Lua.

Compatible with Lua 5.1, 5.2 and 5.3 (thanks compat-5.3).

Status

Installation

ldbus is on luarocks: https://luarocks.org/modules/daurnimator/ldbus

Install via luarocks, you will need to provide paths to dbus/dbus.h and dbus/dbus-arch-deps.h

luarocks install --server=http://luarocks.org/manifests/daurnimator ldbus DBUS_INCDIR=/usr/include/dbus-1.0/ DBUS_ARCH_INCDIR=/usr/lib/dbus-1.0/include

Usage

example.lua is a lua version of Matthew Johnson's example

Bound from C

Other

ldbus.types

A table of the dbus types from name to type (as a character)

key value
"boolean" "b"
"byte" "y"
"double" "d"
"int16" "n"
"int32" "i"
"int64" "x"
"uint16" "q"
"uint32" "u"
"uint64" "t"
"string" "s"
"signature" "g"
"object_path" "o"
"array" "a"
"dict_entry" "e"
"variant" "v"
"struct" "r"

ldbus.basic_types

A table of the dbus basic types from name to type (as a character)

key value
"boolean" "b"
"byte" "y"
"double" "d"
"int16" "n"
"int32" "i"
"int64" "x"
"uint16" "q"
"uint32" "u"
"uint64" "t"
"string" "s"
"signature" "g"
"object_path" "o"

my_iter = ldbus.message.iter.new()

Creates a new DBusMessageIter object

new_iter = my_iter:clone()

Creates a copy of the given DBusMessageIter

Something went wrong with that request. Please try again.