方法

GIRepositoryObjectInfoget_constant

自:2.80

声明 [源]

GIConstantInfo*
gi_object_info_get_constant (
  GIObjectInfo* info,
  unsigned int n
)

描述 [源]

获取索引为 n 的对象类型常量。

自:2.80

参数

n

类型: unsigned int

要获取的常量索引。

返回值

类型: GIConstantInfo

使用 gi_base_info_unref() 调用释放结构。

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