使用GDBUS-CODEGEN时如何检查结构_的实现
在此存储库中 htttps://github.com/github.com/chiehmin/gdbus_test/gdbus_test/blob/master /minminbus.h
#define MIN_MIN_BUS_TYPE_GDBUS (min_min_bus_gdbus_get_type ())
#define MIN_MIN_BUS_GDBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MIN_MIN_BUS_TYPE_GDBUS, MinMinBusGDBUS))
#define MIN_MIN_BUS_IS_GDBUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MIN_MIN_BUS_TYPE_GDBUS))
#define MIN_MIN_BUS_GDBUS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), MIN_MIN_BUS_TYPE_GDBUS, MinMinBusGDBUSIface))
struct _MinMinBusGDBUS;
typedef struct _MinMinBusGDBUS MinMinBusGDBUS;
typedef struct _MinMinBusGDBUSIface MinMinBusGDBUSIface;
我找不到_minminbusgdbus的实现
我真的很想知道_minminbusgdbus的组成,但是
in this repository https://github.com/chiehmin/gdbus_test/blob/master/minminbus.h
#define MIN_MIN_BUS_TYPE_GDBUS (min_min_bus_gdbus_get_type ())
#define MIN_MIN_BUS_GDBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MIN_MIN_BUS_TYPE_GDBUS, MinMinBusGDBUS))
#define MIN_MIN_BUS_IS_GDBUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MIN_MIN_BUS_TYPE_GDBUS))
#define MIN_MIN_BUS_GDBUS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), MIN_MIN_BUS_TYPE_GDBUS, MinMinBusGDBUSIface))
struct _MinMinBusGDBUS;
typedef struct _MinMinBusGDBUS MinMinBusGDBUS;
typedef struct _MinMinBusGDBUSIface MinMinBusGDBUSIface;
i really want to know the composition of the _MinMinBusGDBUS, but i can't find implementation of the _MinMinBusGDBUS, and i want to know about gdbus step by step..
please give me some help about this problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有定义
struct _minminbusgdbus
,因为minminbusgdbus
是一个gobject接口,而不是类。就像Java接口与类一样,除非由其他类实现,否则它不能具有具体实例,该实例将提供其自己的实例结构。There isn’t a definition of a
struct _MinMinBusGDBUS
becauseMinMinBusGDBUS
is a GObject interface, rather than a class. Just like Java interfaces vs classes, it cannot have a concrete instance unless it’s implemented by another class, which would provide its own instance struct.