 +		snprintf(buffer, size, "%s/Options", keyStealName(current));
 +
 +		ksInit(settings);
-+		kdbGetChildKeys(buffer,settings,KDB_O_SORT);
++		kdbGetChildKeys(handle, buffer,settings,KDB_O_SORT);
 +		if (ksGetSize(settings))
 +			monitor->mon_option_lst=ksToOptions(settings);
 +

+	snprintf(buffer, bufSize, "%s/Layouts", rootKey);	 
+
+	layouts = ksNew();
+	kdbGetChildKeys(buffer,layouts, KDB_O_DIR);
+	ksRewind(layouts);
+	while ((layout=ksNext(layouts))) {
+		parsePrologue (XF86ConfLayoutPtr, XF86ConfLayoutRec) 

+ *
+ */
+XF86ConfLayoutPtr
+xf86getLayout (KDBHandle handle, const char *rootKey)
+{
+	XF86ConfLayoutPtr lay=NULL; /* we'll return this */
+	KeySet *layouts;
