dbus底层API与高层绑定API

D-Bus Documentation

This manual documents the low-level D-Bus C API. If you use this low-level API directly, you're signing up for some pain.

Caveats aside, you might get started learning the low-level API by reading about DBusConnection and DBusMessage.

There are several other places to look for D-Bus information, such as the tutorial and the specification; those can be found at the D-Bus website. If you're interested in a sysadmin or package maintainer's perspective on the dbus-daemon itself and its configuration, be sure to check out the man pages as well.

The low-level API documented in this manual deliberately lacks most convenience functions - those are left up to higher-level libraries based on frameworks such as GLib, Qt, Python, Mono, Java, etc. These higher-level libraries (often called "D-Bus bindings") have features such as object systems and main loops that allow a much more convenient API.

The low-level API also contains plenty of clutter to support integration with arbitrary object systems, languages, main loops, and so forth. These features add a lot of noise to the API that you probably don't care about unless you're coding a binding.

This manual also contains docs for D-Bus internals, so you can use it to get oriented to the D-Bus source code if you're interested in patching the code. You should also read the file HACKING which comes with the source code if you plan to contribute to D-Bus.

As you read the code, you can identify internal D-Bus functions because they start with an underscore ('_') character. Also, any identifier or macro that lacks a DBus, dbus_, or DBUS_ namepace prefix is internal, with a couple of exceptions such as NULLTRUE, and FALSE.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值