home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
- <TITLE>XrmPutResource(X3xlib) X Version 11 (Release 6.1) </TITLE>
- <SCRIPT LANGUAGE=JavaScript>
- <!-- comment for old browsers
- var Contents = "/man/html.X3xlib/CONTENTS.html"
- var PrintSequence = "/man/html.X3xlib/CONTENTS.html"
- if ( parent.RightHistory != null ) parent.RightHistory(document.URL)
- // end of comment -->
- </SCRIPT>
- </HEAD>
- <BODY>
- <H1>XrmPutResource(X3xlib) X Version 11 (Release 6.1)</H1>
- <HR>
- <B>XrmPutResource --
- <!--Meta NM "XrmPutResource"-->
- store database resources
- </B>
- <!--Meta DN "store database resources"-->
- <P>
- <H2>Synopsis</H2>
- <PRE> void XrmPutResource(database, specifier, type, value)
- XrmDatabase *database;
- char *specifier;
- char *type;
- XrmValue *value;
- <P>
- void XrmQPutResource(database, bindings, quarks, type, value)
- XrmDatabase *database;
- XrmBindingList bindings;
- XrmQuarkList quarks;
- XrmRepresentation type;
- XrmValue *value;
- <P>
- void XrmPutStringResource(database, specifier, value)
- XrmDatabase *database;
- char *specifier;
- char *value;
- <P>
- void XrmQPutStringResource(database, bindings, quarks, value)
- XrmDatabase *database;
- XrmBindingList bindings;
- XrmQuarkList quarks;
- char *value;
- <P>
- void XrmPutLineResource(database, line)
- XrmDatabase *database;
- char *line;
- </PRE>
- <H3>Arguments</H3>
- <DL COMPACT>
- <P><DT><B><I>bindings</I></B><DD>
- Specifies a list of bindings.
- <P><DT><B><I>database</I></B><DD>
- Specifies the resource database.
- <P><DT><B><I>line</I></B><DD>
- Specifies the resource name and value pair as a single string.
- <P><DT><B><I>quarks</I></B><DD>
- Specifies the complete or partial name or the class list of the resource.
- <P><DT><B><I>specifier</I></B><DD>
- Specifies a complete or partial specification of the resource.
- <BR>
- <P><DT><B><I>type</I></B><DD>
- Specifies the type of the resource.
- <P><DT><B><I>value</I></B><DD>
- Specifies the value of the resource, which is specified as a string.
- </DL>
- <H2>Description</H2>
- If database contains <B>NULL</B>, <B>XrmPutResource</B>
- creates a new database and returns a pointer to it.
- <B>XrmPutResource</B> is a convenience function that calls
- <B>XrmStringToBindingQuarkList</B> followed by:
- <PRE> XrmQPutResource(database, bindings, quarks, XrmStringToQuark(type), value)
- </PRE>
- If the specifier and type are not in the Host Portable Character,
- Encoding the result is implementation-dependent.
- The value is stored in the database without modification.
- <P>
- If database contains <B>NULL</B>, <B>XrmQPutResource</B>
- creates a new database and returns a pointer to it.
- If a resource entry with the identical bindings and quarks already
- exists in the database, the previous type and value are replaced by the new
- specified type and value.
- The value is stored in the database without modification.
- <P>
- If database contains <B>NULL</B>,
- <B>XrmPutStringResource</B>
- creates a new database and returns a pointer to it.
- <B>XrmPutStringResource</B>
- adds a resource with the specified value to the specified database.
- <B>XrmPutStringResource</B>
- is a convenience function that first calls
- <B>XrmStringToBindingQuarkList</B>
- on the specifier and then calls <B>XrmQPutResource</B>,
- using a ``String'' representation type.
- 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.
- <P>
- If database contains <B>NULL</B>,
- <B>XrmQPutStringResource</B>
- creates a new database and returns a pointer to it.
- <B>XrmQPutStringResource</B>
- is a convenience routine that constructs an <B>XrmValue</B>
- for the value string (by calling <B>strlen</B>
- to compute the size) and then calls <B>XrmQPutResource</B>,
- using a ``String'' representation type.
- The value is stored in the database without modification.
- <P>
- If database contains <B>NULL</B>,
- <B>XrmPutLineResource</B>
- creates a new database and returns a pointer to it.
- <B>XrmPutLineResource</B>
- adds a single resource entry to the specified database.
- The line should be in valid ResourceLine format
- (see section 15.1 of <I>Xlib - C Language X Interface</I>)
- terminated by a newline or null character; the database that results from
- using a string with incorrect syntax is implementation-dependent.
- The string is parsed in the locale of the database.
- If the <B>ResourceName</B>
- is not in the Host Portable Character Encoding,
- the result is implementation-dependent.
- Note that comment lines are not stored.
- <H2>References</H2>
- <A HREF=/cgi-bin/man/man?XrmGetResource+X3xlib><B>XrmGetResource</B>(X3xlib)</A>,
- <A HREF=/cgi-bin/man/man?XrmInitialize+X3xlib><B>XrmInitialize</B>(X3xlib)</A>,
- <A HREF=/cgi-bin/man/man?XrmMergeDatabases+X3xlib><B>XrmMergeDatabases</B>(X3xlib)</A>,
- <A HREF=/cgi-bin/man/man?XrmUniqueQuark+X3xlib><B>XrmUniqueQuark</B>(X3xlib)</A>
- <BR>
- <BR>
- <I>Xlib - C Language X Interface</I>
- <P>
- <!-- NAVBEGIN -->
- <HR>
- <I>
- <SMALL>
- 30 January 1998
- <BR>
- <A HREF=/man/html.X3xlib/COPYRIGHT.html>© 1998 The Santa Cruz Operation, Inc. All rights reserved.</A>
- <BR>
- </SMALL>
- </I>
- <!-- NAVEND -->
- </BODY></HTML>
-