分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
从Tutorial中学习基本概念后,进入实战阶段,通过学习,我们给出连个小例子,同步例子和异步例子。
类型和GType的映射
在D-Bus编程中,基础类型和GType的映射表格如下。在后面的程序小例子中我们会看到具体如何对应。
D-Bus basic type | GType | Free function | Notes |
BYTE | G_TYPE_BOOLEAN | ||
INT16 | G_TYPE_INT | Will be changed to a G_TYPE_INT16 once GLib has it | |
UINT16 | G_TYPE_UINT | Will be changed to a G_TYPE_UINT16 once GLib has it | |
INT32 | G_TYPE_INT | Will be changed to a G_TYPE_INT32 once GLib has it | |
UINT32 | G_TYPE_UINT | Will be changed to a G_TYPE_UINT32 once GLib has it | |
INT64 | G_TYPE_GINT64 | ||
UINT64 | G_TYPE_GUINT64 | ||
DOUBLE | G_TYPE_DOUBLE | ||
STRING | G_TYPE_STRING | g_free | |
OBJECT_PATH | DBUS_TYPE_G_PROXY | g_object_unref | The returned proxy does not have an interface set; use dbus_g_proxy_set_interface to invoke methods |
在D-Bus编程中,container类型和GType的映射表格如下:
D-Bus type signature | Description | GType | C typedef | Free function |