Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xrmenumeratedatabase(3x11) [osf1 man page]

XrmEnumerateDatabase(3X11)												XrmEnumerateDatabase(3X11)

NAME
XrmEnumerateDatabase - enumerate resource database entries SYNOPSIS
#define XrmEnumAllLevels 0 #define XrmEnumOneLevel 1 Bool XrmEnumerateDatabase(database, name_prefix, class_prefix, mode, proc, arg) XrmDatabase database; XrmNameList name_prefix; XrmClassList class_prefix; int mode; Bool (*proc)(); XPointer arg; ARGUMENTS
Specifies the resource database. Specifies the resource name prefix. Specifies the resource class prefix. Specifies the number of levels to enumerate. Specifies the procedure that is to be called for each matching entry. Specifies the user-supplied argument that will be passed to the procedure. DESCRIPTION
The XrmEnumerateDatabase function calls the specified procedure for each resource in the database that would match some completion of the given name/class resource prefix. The order in which resources are found is implementation dependent. If mode is XrmEnumOneLevel, a resource must match the given name/class prefix with just a single name and class appended. If mode is XrmEnumAllLevels, the resource must match the given name/class prefix with one or more names and classes appended. If the procedure returns True, the enumeration terminates and the function returns True. If the procedure always returns False, all matching resources are enumerated and the function returns False. The procedure is called with the following arguments: (*proc)(database, bindings, quarks, type, value, arg) XrmDatabase *database; XrmBindingList bindings; XrmQuarkList quarks; XrmRepresentation *type; XrmValue *value; XPointer arg; The bindings and quarks lists are terminated by NULLQUARK. Note that pointers to the database and type are passed, but these values should not be modified. The procedure must not modify the database. If Xlib has been initialized for threads, the procedure is called with the database locked and the result of a call by the procedure to any Xlib function using the same database is not defined. SEE ALSO
XrmGetResource(3X11), XrmInitialize(3X11), XrmPutResource(3X11) Xlib -- C Language X Interface XrmEnumerateDatabase(3X11)

Check Out this Related Man Page

XrmPutResource(3X11)						  XLIB FUNCTIONS					      XrmPutResource(3X11)

NAME
XrmPutResource, XrmQPutResource, XrmPutStringResource, XrmQPutStringResource, XrmPutLineResource - store database resources SYNTAX
void XrmPutResource(database, specifier, type, value) XrmDatabase *database; char *specifier; char *type; XrmValue *value; void XrmQPutResource(database, bindings, quarks, type, value) XrmDatabase *database; XrmBindingList bindings; XrmQuarkList quarks; XrmRepresentation type; XrmValue *value; void XrmPutStringResource(database, specifier, value) XrmDatabase *database; char *specifier; char *value; void XrmQPutStringResource(database, bindings, quarks, value) XrmDatabase *database; XrmBindingList bindings; XrmQuarkList quarks; char *value; void XrmPutLineResource(database, line) XrmDatabase *database; char *line; ARGUMENTS
bindings Specifies a list of bindings. database Specifies the resource database. line Specifies the resource name and value pair as a single string. quarks Specifies the complete or partial name or the class list of the resource. specifier Specifies a complete or partial specification of the resource. type Specifies the type of the resource. value Specifies the value of the resource, which is specified as a string. DESCRIPTION
If database contains NULL, XrmPutResource creates a new database and returns a pointer to it. XrmPutResource is a convenience function that calls XrmStringToBindingQuarkList followed by: XrmQPutResource(database, bindings, quarks, XrmStringToQuark(type), value) 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. If database contains NULL, XrmQPutResource 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. If database contains NULL, XrmPutStringResource creates a new database and returns a pointer to it. XrmPutStringResource adds a resource with the specified value to the specified database. XrmPutStringResource is a convenience function that first calls XrmStringToBind- ingQuarkList on the specifier and then calls XrmQPutResource, 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. If database contains NULL, XrmQPutStringResource creates a new database and returns a pointer to it. XrmQPutStringResource is a conve- nience routine that constructs an XrmValue for the value string (by calling strlen to compute the size) and then calls XrmQPutResource, using a ``String'' representation type. The value is stored in the database without modification. If database contains NULL, XrmPutLineResource creates a new database and returns a pointer to it. XrmPutLineResource adds a single resource entry to the specified database. The line should be in valid ResourceLine format (see section 15.1) 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 ResourceName is not in the Host Portable Character Encoding, the result is implementation-dependent. Note that comment lines are not stored. SEE ALSO
XrmGetResource(3X11), XrmInitialize(3X11), XrmMergeDatabases(3X11), XrmUniqueQuark(3X11) Xlib - C Language X Interface X Version 11 Release 6.6 XrmPutResource(3X11)
Man Page