12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTvoid XrmQPutResource(database, bindings, quarks, type, value)XrmDatabase *database;XrmBindingList bindings;XrmQuarkList quarks;XrmRepresentation type;XrmValue *value;databasebindingsquarkstypevalueSpecifies the resource database.Specifies a list of bindings.Specifies the complete or partial name or the class list of the resource.Specifies the type of the resource.Specifies the value of the resource, which is specified as a string.If database contains NULL, XrmQPutResource creates a new database and returns a pointer toit. If aresource entry with the identical bindings and quarks already exists in the database, theprevious type and value are replaced by the new specified type and value. The value is stored inthe database without modification.To add a resource that is specified as a string, use XrmPutStringResource.void XrmPutStringResource(database, specifier, value)XrmDatabase *database;char *specifier;char *value;databasespecifiervalueSpecifies the resource database.Specifies a complete or partial specification of the resource.Specifies the value of the resource, which is specified as a string.If database contains NULL, XrmPutStringResource creates a new database and returns apointer to it. XrmPutStringResource adds a resource with the specified value to the specifieddatabase. XrmPutStringResource is a convenience function that first calls XrmStringToBindingQuarkListon the specifier and then calls XrmQPutResource, using a ‘‘String’’ representationtype. If the specifier is not in the Host Portable Character Encoding, the result is implementation-dependent.The value is stored in the database without modification.To add a string resource using quarks as a specification, use XrmQPutStringResource.395

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!