summaryrefslogtreecommitdiffstats
path: root/xkb.c
diff options
context:
space:
mode:
authorpnfisher <pnfisher>1999-09-14 23:06:13 +0000
committerpnfisher <pnfisher>1999-09-14 23:06:13 +0000
commite04755cef3b4db0e4f18d7fe717ef5c64279bd2d (patch)
tree77da23e156c92780b1c3d1a92685f4aa9f596202 /xkb.c
parent6bdce0874f2e08d5fe2ae2f3e04a5223ee5dbd1e (diff)
downloadanaconda-e04755cef3b4db0e4f18d7fe717ef5c64279bd2d.tar.gz
anaconda-e04755cef3b4db0e4f18d7fe717ef5c64279bd2d.tar.xz
anaconda-e04755cef3b4db0e4f18d7fe717ef5c64279bd2d.zip
Write out keyboard section.
Diffstat (limited to 'xkb.c')
-rw-r--r--xkb.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/xkb.c b/xkb.c
index 3ecc8b5f7..9271f7bef 100644
--- a/xkb.c
+++ b/xkb.c
@@ -18,11 +18,14 @@ static XkbRF_RulesPtr rules;
PyObject *list_rules ();
PyObject *set_rule (PyObject *, PyObject *);
+PyObject * py_get_rulesbase ();
+
char * get_rulesbase ();
static PyMethodDef _xkbMethods[] = {
{ "list_rules", list_rules, 1 },
- { "set_rule", set_rule, 1},
+ { "set_rule", set_rule, 1 },
+ { "get_rulesbase", py_get_rulesbase, 1 },
{ NULL, NULL }
};
@@ -41,6 +44,12 @@ get_rulesbase ()
return rulesbase;
}
+
+PyObject *
+py_get_rulesbase ()
+{
+ return Py_BuildValue ("s", get_rulesbase ());
+}
void
init_xkb ()