方法

GIRepositoryInterfaceInfoget_constant

自:2.80

声明 [源]

GIConstantInfo*
gi_interface_info_get_constant (
  GIInterfaceInfo* info,
  unsigned int n
)

描述 [源]

获取索引 n 的接口类型常量。

自:2.80

参数

n

类型: unsigned int

要获取的常量索引。

返回值

类型: GIConstantInfo

释放结构通过调用 gi_base_info_unref() 完成。

方法调用者获取返回数据的所有权,并负责释放它。