Main Page | Modules | Class List | File List | Class Members | File Members

Saving and restoring XKB configuration into X root window properties


Functions

Bool XklGetNamesProp (Atom rulesAtomName, char **rulesFileOut, XklConfigRecPtr configOut)
Bool XklSetNamesProp (Atom rulesAtomName, char *rulesFile, XklConfigRecPtr config)
Bool XklBackupNamesProp ()
Bool XklRestoreNamesProp ()

Detailed Description

Generalizes XkbRF_GetNamesProp and XkbRF_SetNamesProp.

Function Documentation

Bool XklBackupNamesProp  ) 
 

Backups current XKB configuration into some property - if this property is not defined yet.

Returns:
True on success

Bool XklGetNamesProp Atom  rulesAtomName,
char **  rulesFileOut,
XklConfigRecPtr  configOut
 

Gets the XKB configuration from any root window property

Parameters:
rulesAtomName is an atom name of the root window property to read
rulesFileOut is a pointer to hold the file name
configOut is a buffer to hold the result - all records are allocated using standard malloc
Returns:
True on success

Bool XklRestoreNamesProp  ) 
 

Restores XKB from the property saved by XklBackupNamesProp

Returns:
True on success
See also:
XklBackupNamesProp

Bool XklSetNamesProp Atom  rulesAtomName,
char *  rulesFile,
XklConfigRecPtr  config
 

Saves the XKB configuration into any root window property

Parameters:
rulesAtomName is an atom name of the root window property to write
rulesFile is a rules file name
config is a configuration to save
Returns:
True on success


Generated on Thu Dec 30 23:19:19 2004 for libxklavier by  doxygen 1.3.9.1