Lennart Poettering
faaa5728d9
utf8: export utf8 validation functions as part of sd-bus
...
To write useful bus code clients need to validate utf8 frequently since
the bus reacts allergic to it. Since glibc does not provide any calls
for this, let's provide it as part of libsystemd-bus.
2013-11-07 03:07:40 +01:00
Kay Sievers
102d8f8169
consistently use "int" when retrieving "bool" from bus messages
2013-11-07 02:05:57 +01:00
Zbigniew Jędrzejewski-Szmek
ba341e7c3c
bus: add forgotten _public_
2013-11-06 19:50:18 -05:00
Zbigniew Jędrzejewski-Szmek
5a330cda0c
pam_systemd: dup the fd received from logind
...
Otherwise sd_bus_message cleanup would close it.
2013-11-06 19:50:18 -05:00
Lennart Poettering
b7484e2a58
event: make sure we keep a reference to all events we dispatch while we do so.
2013-11-07 00:13:58 +01:00
Zbigniew Jędrzejewski-Szmek
f7262a9f28
bus: add public libsystemd-event
2013-11-06 14:56:47 -05:00
Zbigniew Jędrzejewski-Szmek
d9f644e2cd
bus: export libsystemd-bus as a public library
...
Old static libsystemd-bus.la becomes libsystemd-bus-internal.la.
memfd functions are also exported in the same library.
(Best viewed with --color-words -U0).
2013-11-06 14:56:47 -05:00
Lennart Poettering
eb9da376d7
clients: unify how we invoke getopt_long()
...
Among other things this makes sure we always expose a --version command
and show it in the help texts.
2013-11-06 18:28:39 +01:00
Lennart Poettering
d75edbd619
busctl: port over to use bus_open_transport()
2013-11-06 17:33:24 +01:00
Lennart Poettering
cd6f997f71
bus: handle serialization of NULL strings
...
Instead of simply crashing be somewhat nicer and serialize a NULL string
into the empty string and generate an error on signature and object path
strings.
2013-11-06 02:31:35 +01:00
Kay Sievers
2270309471
bus: test-bus-marshal - make dbus-1 optional
2013-11-06 02:03:05 +01:00
Lennart Poettering
5d66866d96
bus: never report nodes as children that do not have the right prefix
2013-11-05 21:24:33 +01:00
Lennart Poettering
affff0b6f2
bus: add sd_bus_get_current() bus call to determine message that is currently being dispatched
2013-11-05 20:51:49 +01:00
Lennart Poettering
7b05894275
bus: add new bus API call sd_bus_message_at_end()
...
This may be used to determine whether we are at the end of a container
ot the entire message.
2013-11-05 19:36:05 +01:00
Lennart Poettering
9d6c7c821c
bus: make use of assert_return() in all API calls that don't use it yet
2013-11-05 19:14:58 +01:00
Marc-Antoine Perennou
4686d1b6ee
bus: add sd_bus_message_read_strv()
...
It will be useful to have that in the public API.
2013-11-05 18:12:18 +01:00
Lennart Poettering
313333b403
bus: fix deserialization of polkit response
2013-11-05 17:45:46 +01:00
Lennart Poettering
275b39fe4b
bus: support entering containers without specifying the type
...
On request om Tom Gundersen...
2013-11-05 03:07:39 +01:00
Kay Sievers
9f6eb1cd58
bus: update bus_map_all_properties()
2013-11-05 02:57:49 +01:00
Lennart Poettering
9b07511d65
bus: add sd_bus_message_skip() to skip over multiple fields
2013-11-05 02:26:48 +01:00
Lennart Poettering
0dcd14b940
bus: allow that if the destination pointer in sd_bus_message_read_basic() is NULL we skip over a field
2013-11-05 02:26:48 +01:00
Lennart Poettering
cc37738108
logind: port logind to libsystemd-bus
2013-11-05 01:13:05 +01:00
Lennart Poettering
e650403069
bus: make it easy to serialize C99 bools and uids/gids/pids via vtable properties
2013-11-05 01:13:05 +01:00
Lennart Poettering
c13c7de3bf
bus: support implicit serialization of strv string arrays within vtables
2013-11-05 01:13:05 +01:00
Lennart Poettering
c9b6cb28c3
bus: dbus-daemons' access messages are a bit too verbose
2013-11-05 01:13:05 +01:00
Kay Sievers
164ddcfae8
bus: make bus_map_all_properties() call idempotent
2013-11-02 02:38:39 +01:00
Kay Sievers
ffc06c3513
bus: use internal helper to read org.freedesktop.DBus.Properties::GetAll variables
2013-11-02 01:48:22 +01:00
Lennart Poettering
e5609878d8
timedatectl: assorted simplifications
2013-10-31 03:02:49 +01:00
Lennart Poettering
04d3927924
machinectl: add new command to spawn a getty inside a container
2013-10-31 01:43:38 +01:00
Tom Gundersen
07d978b0d4
bus-util: avoid infinite loop
2013-10-30 23:23:10 +01:00
Kay Sievers
4d7859d173
localectl: port to libsystemd-bus
2013-10-30 22:50:09 +01:00
Lennart Poettering
d21ed1ead1
run: add support for executing commands remotely via SSH or in a container
...
Also, unify the transport logic a bit, since we reuse the same scheme in
many of our client tools.
2013-10-30 16:44:55 +01:00
Lennart Poettering
a7893c6b28
bus: add API call to create bus connection to the system bus of local containers
...
Also, add support for this to machinectl, so that we can enumerate the
machines that run inside a container. We must go deeper!
2013-10-30 15:37:02 +01:00
Lennart Poettering
0f8bd8debb
bus: move ssh support into public API of libsystem-bus
2013-10-30 15:35:49 +01:00
Tom Gundersen
a1da85830b
machinectl: port to sd-bus
2013-10-30 03:40:23 +01:00
Lennart Poettering
38911893c5
bus: fix build
2013-10-30 02:38:52 +01:00
Lennart Poettering
c335068380
machined: port over to libsystemd-bus
2013-10-30 02:08:57 +01:00
Lennart Poettering
ae7bed3f2d
bus: make sure we can match well-known names
2013-10-30 02:08:57 +01:00
Lennart Poettering
d36679f72e
bus: it is OK to have signals with multiple parameters
2013-10-30 02:08:57 +01:00
Lennart Poettering
bd03703884
bus: don't fail if GetAll() is used to get properties of the built-in interfaces
2013-10-30 02:08:57 +01:00
Lennart Poettering
3fc047f43c
bus: make bus message dump output a bit smaller
2013-10-30 02:08:57 +01:00
Lennart Poettering
dd8243a3ba
bus: don't include the introspected object in list of subobjects
2013-10-30 02:08:57 +01:00
Lennart Poettering
80ba3b84dd
bus: add extra validity checks
2013-10-29 19:55:37 +01:00
Lennart Poettering
250a918dc4
strv: introduce new strv_from_stdarg_alloca() macro to generate a string array from stdarg function parameters
...
This allows us to turn lists of strings passed in easily into string
arrays without having to allocate memory.
2013-10-29 19:53:43 +01:00
Lennart Poettering
c430fee6ff
bus: add new sd_bus_message_verify_type() and sd_bus_message_copy() API calls
2013-10-29 19:34:59 +01:00
Kay Sievers
77b421d050
bus: disable debug output in test-bus-kernel-benchmark
2013-10-25 07:28:19 +02:00
Lennart Poettering
28d6633ae1
bus: NULL signatures are OK too
2013-10-22 12:41:54 +01:00
Lennart Poettering
430fb8fab2
bus: only if the user tries to read over the end of an array we should handle this as EOF
2013-10-22 12:41:54 +01:00
Kay Sievers
9bcbce4201
bus: avoid 'bool' storage when retrieving 'b' from the message
...
Just use an unsigned int as a bool type to avoid issues in the public
message reading API; sizeof(bool) == 1, but the code copies 4 bytes at
the pointers destination.
2013-10-22 03:35:45 +02:00
David Strauss
9ec9694ce3
sd-event: EPOLLONESHOT only disables event reporting after an event. The fd is still registered.
2013-10-21 17:23:01 -07:00