Gck.Builder.prototype.add_attribute

function add_attribute(attr: Gck.Attribute): void {
    // Gjs wrapper for gck_builder_add_attribute()
}
  

Add an attribute to the builder. The attribute is added unconditionally whether or not an attribute with the same type already exists on the builder.

The attr attribute must have been created or owned by the Gck library. If you call this function on an arbitrary Gck.Attribute that is allocated on the stack or elsewhere, then this will result in undefined behavior.

As an optimization, the attribute memory value is automatically shared between the attribute and the builder.

attr

the attribute to add