gdbus

    0热度

    1回答

    我正在实施一个dbus服务器,为了简化事情,我决定使用gdbus-codegen。 This hello world example和it's repository将生成头文件和源文件。然后,它这样做是为了将信号连接到功能: g_signal_connect (interface, "handle-hello-world", G_CALLBACK (on_han

    0热度

    2回答

    我试图通过dbus发送两个字符串数组(我正在使用gdbus API,使用gdbus-codegen)。 我已经定义了dbus接口,如下所示。 <method name="foo"> <arg name="count" direction="out" type="i" /> <arg name="array" direction="out" type="a(ia(s))"

    0热度

    1回答

    我有一个systemd foo.slice,cgroup设置为CPUShares。 我的想法是在系统启动期间的某个时刻更改设置,这将由systemd服务触发。 我做了一些测试工作来检查如何在运行时更改设置。 在foo.slice我定义了CPUShares=256。这将导致cat /sys/fs/cgroup/cpu/foo.slice/cpu.shares 256。 ,将由gdbus intros

    1热度

    1回答

    我实现这个com.example.appname.desktop文件的应用程序如下: $ cat /usr/local/share/applications/com.example.appname.desktop [Desktop Entry] Version=1.0 Terminal=false Type=Application Name=appname Exec=/opt/app/

    1热度

    1回答

    我在的DBus反省XML格式描述的接口: <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node> <interface na

    6热度

    1回答

    使用gdbus-codegen生成管理器代理时,我无法接收systemd DBus信号。但是我能够成功地调用systemd提供的DBus提供的方法。 我在网上搜索,看起来这些链接没有太大的成功。当gdbus-codegen用于systemd API时,如何做到这一点没有太多例子。 https://developer.gnome.org/gio/stable/gdbus-codegen.html h

    0热度

    1回答

    试图从服务器发送数据到客户端,并收到此错误: error: GVariant serialization of type `Gee.ArrayList' is not supported public abstract ArrayList<EventData?> get_event_list() throws IOError;

    0热度

    2回答

    在接口<none>中gdbus-monitor输出有特殊含义吗? 什么API调用,需要创建一个使用GDbus这样的消息(g_dbus_connection_register_object不允许通过NULL为GDBusInterfaceInfo *这似乎是唯一注册一个对象的路径) 相关:dbus - register object to remote on interface NULL

    9热度

    3回答

    我是GDbus编程新手。我需要使用Dbus Glib实现简单的Dbus发送 - 接收消息(信号)。我试图谷歌一些示例程序,但无法找到。 任何人都可以发布任何这样的示例程序或指向我的一些示例程序教程? 在此先感谢... 感谢, SB

    2热度

    1回答

    有没有人知道使用GLib和GDBus时检测内存泄漏的工具或技术?我对使用这两个库相对比较陌生,并且相信我正确地使用了API,但如果有一个工具可以用来确认我正确清理我的资源,那将是非常好的。我已经通过各种lint类型的程序运行我的代码,但这些可能不会检测到任何抽象到库中的任何东西。 我正在寻找一种专门针对GLib或GDBus的工具,或者我可以测试的工具,以便定位这些库?也许甚至有一些我可以为GLib