专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > MeeGo

dbus_connection_setup_with_g_main()的有关问题

发布时间:2010-05-30 20:13:38 文章来源:www.iduyao.cn 采编人员:星星草
dbus_connection_setup_with_g_main()的问题
Hi, 

I meet a build error says: 'dbus_connection_setup_with_g_main' was not declared in this scope. 

I have included the following headfiles, and used the gcc option: `pkg-config --cflags --libs dbus-glib-1` 

#include <glib.h> 
#include <dbus/dbus.h> 
#include <dbus/dbus-glib.h> 

But, some other APIs in the same code can be found by gcc, such as:dbus_bus_add_match(), dbus_connection_add_filter(), g_main_loop_new() and g_main_loop_run() 

Any suggestion? Thank you very much!
------解决方案--------------------
the same question as you...
------解决方案--------------------
please refer to this url for detail:
http://dbus.freedesktop.org/doc/dbus-glib/dbus-glib-DBus-GLib-low-level.html

#include <dbus/dbus-glib-lowlevel.h>

void                dbus_set_g_error                    (GError **gerror,
                                                         DBusError *derror);
void                dbus_connection_setup_with_g_main   (DBusConnection *connection,
                                                         GMainContext *context);
DBusGConnection *   dbus_connection_get_g_connection    (DBusConnection *connection);
void                dbus_server_setup_with_g_main       (DBusServer *server,
                                                         GMainContext *context);
#define             DBUS_TYPE_CONNECTION
#define             DBUS_TYPE_MESSAGE
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: