diff options
author | pnfisher <pnfisher> | 1999-09-14 23:06:13 +0000 |
---|---|---|
committer | pnfisher <pnfisher> | 1999-09-14 23:06:13 +0000 |
commit | e04755cef3b4db0e4f18d7fe717ef5c64279bd2d (patch) | |
tree | 77da23e156c92780b1c3d1a92685f4aa9f596202 /xkb.c | |
parent | 6bdce0874f2e08d5fe2ae2f3e04a5223ee5dbd1e (diff) | |
download | anaconda-e04755cef3b4db0e4f18d7fe717ef5c64279bd2d.tar.gz anaconda-e04755cef3b4db0e4f18d7fe717ef5c64279bd2d.tar.xz anaconda-e04755cef3b4db0e4f18d7fe717ef5c64279bd2d.zip |
Write out keyboard section.
Diffstat (limited to 'xkb.c')
-rw-r--r-- | xkb.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 () |