diff options
| author | Simon McVittie <smcv@celebrin.pseudorandom.co.uk> | 2006-09-27 12:50:06 +0100 |
|---|---|---|
| committer | Simon McVittie <smcv@celebrin.pseudorandom.co.uk> | 2006-09-27 12:50:06 +0100 |
| commit | cdc40aa20b52b4a8e9910e8fe48824205b4e7591 (patch) | |
| tree | 24cfa300adca4b15772138d3a7c23292cd32d3ff /_dbus_bindings/module.c | |
| parent | 9c7ee716288ffc80d1c931c84cc2b3242acf0b1e (diff) | |
| download | dbus-python-cdc40aa20b52b4a8e9910e8fe48824205b4e7591.tar.gz | |
_dbus_bindings: Expose name-validation functions to Python code.
dbus: Remove _util module in favour of using the name-validation functions
from _dbus_bindings.
Diffstat (limited to '_dbus_bindings/module.c')
| -rw-r--r-- | _dbus_bindings/module.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/_dbus_bindings/module.c b/_dbus_bindings/module.c index b872a87..f87119e 100644 --- a/_dbus_bindings/module.c +++ b/_dbus_bindings/module.c @@ -45,6 +45,15 @@ PyDoc_STRVAR(module_doc, #include "bus-impl.h" /* Bus */ static PyMethodDef module_functions[] = { +#define ENTRY(name,flags) {#name, name, flags, name##__doc__} + ENTRY(validate_interface_name, METH_VARARGS), + ENTRY(validate_member_name, METH_VARARGS), + ENTRY(validate_bus_name, METH_VARARGS|METH_KEYWORDS), + ENTRY(validate_object_path, METH_VARARGS), + /* validate_error_name is just implemented as validate_interface_name */ + {"validate_error_name", validate_interface_name, + METH_VARARGS, validate_error_name__doc__}, +#undef ENTRY {NULL, NULL, 0, NULL} }; |
