Gck.Builder.prototype.add_only

function add_only(attrs: Gck.Attributes, only_types: Array(Number(gulong))): void {
    // Gjs wrapper for gck_builder_add_onlyv()
}
  

Add the attributes with the types in only_types from attrs to the builder. The attributes are added uncondititionally whether or not attributes with the same types already exist in the builder.

<informalexample><programlisting> /<!-- -->* Add the CKA_ID and CKA_CLASS attributes from attrs to builder *<!-- -->/ gulong only[] = { CKA_ID, CKA_CLASS }; gck_builder_add_onlyv (builder, attrs, only, 2); </programlisting></informalexample>

As an optimization, the attribute memory values are automatically shared between the attributes and the builder.

attrs

the attributes to add

only_types

the types of attributes to add