使用GDBUS-CODEGEN时如何检查结构_的实现

发布于 2025-02-08 18:53:40 字数 847 浏览 0 评论 0原文

在此存储库中 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅唱ヾ落雨殇 2025-02-15 18:53:41

没有定义struct _minminbusgdbus,因为minminbusgdbus是一个gobject接口,而不是类。就像Java接口与类一样,除非由其他类实现,否则它不能具有具体实例,该实例将提供其自己的实例结构。

There isn’t a definition of a struct _MinMinBusGDBUS because MinMinBusGDBUS 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文