I am making a script to do IO to the NetworkManager over dbus. In the gnome developer docs function arguments are represented as things like 'aa{ss}' but i cannot find a description of there meaning.
Example
RouteData readable aa{sv} """<-this…
I would like to use dbus to signal other instances of the same family of applications.
It seems that to issue a signal I must execute a g_bus_own_name, emit the signal when the name is acquired, then g_bus_unown_name.
This seems like a bit of palava…
I'm pretty much following the example on https://www.freedesktop.org/software/gstreamer-sdk/data/docs/latest/gio/GDBusProxy.html in order to set up Connman signal callbacks on dbus, however in my callback function:
g_signal_connect(
…
I now set up a Pydbus server and exported some methods, but one method keeps me guessing. The amount of arguments used in this method is changing. In Python this is simply done with MyMethod(*arg, **kwarg). If I write this function into my XML…
I am able to introspect a DBus node, and get some XML which includes information about the child nodes. However, this requires me to parse XML, and I'm trying to keep the application lightweight. What gdbus function can I use to simply get a list…
I'm working on a project, implementing everything in C language. As a part of the project, we need to be able to control and configure firewalld, firewall of the current system.
firewalld is implemented in Python and an interface is available.…
My specific error is when trying to run a GDBus example code from here: https://developer.gnome.org/gio/2.30/GDBusConnection.html
The error looks like this:
/usr/bin/ld: main.o: undefined reference to symbol…
I have to run my application as service in ubuntu 16.04. I am using systemd to make it run as service during bootup time. My application has to connect to both session dbus and system dbus.
connecting to system dbus is successful. But connecting…
Using gdbus-codegen for dbus method call, server side works but response string on client side is always NULL.
Specifically the buffer in the call
new_cfg_gdbus_call_receive_new_config_sync(proxy, "new_cfg", buf, NULL, &error);
is NULL, I am…
I am building an MPRIS D-Bus Interface for an application in C using GDBus facilities generated automagically using the gdbus-codegen tool.
When a property is altered, a "PropertiesChanged" signal is automatically generated, which is fine most of…
I'm using GDbus and make a dbus communication.
It using sesstion bus.
Problem is dbus-launch.
I was running dbus in Yocto with c++11.
And, I have to export $(dbus-launch).
But, I want to export $(dbus-launch) or same thing in booting time.
Because…
I would like to know the approach/code snippet to fetch the property from a dbus interface using c++ code snippet.
I have tried the following approaches with error.
Approach#1 using g_dbus_proxy_get_cached_property but it is always returning…
This post has two questions.
1. network interface up/down notification on a specific network device
2. list the network devices.
See below for the answers provided by me. (Thanks to Velkan for helping me in arriving at this)
I am looking for a c++…
I am implementing a dbus server, and to simplify things, I decided to use gdbus-codegen.
This hello world example and it's repository are going to generate header and source files. Then it do this to connect the signal to the…
Trying to send data from server to client and getting this error:
error: GVariant serialization of type `Gee.ArrayList' is not supported
public abstract ArrayList get_event_list () throws IOError;