summaryrefslogtreecommitdiff
path: root/tools/libglibcodegen.py
Commit message (Collapse)AuthorAgeFilesLines
* Don't leak method call results (regression in 0.23.1)Simon McVittie2014-03-181-0/+21
| | | | | | | | | | | Commit 7ffbde3f used common code for two blocks that were not actually the same. dbus-glib method calls give the caller a new reference to the results, whereas dbus-glib signals do not. As a result, the method-call case needs to either free the results, or get them freed by giving ownership to the GValueArray. I chose to give ownership. Reviewed-by: Guillaume Desmottes
* codegen: factor out copy_into_gvalueSimon McVittie2013-10-291-0/+23
| | | | | | | | I needed this for TpExportable (which is still work in progress), but it's already a small code reduction. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=59024 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* Make the code generation tools work under either Python 2 or 3Simon McVittie2013-01-031-2/+2
| | | | | | | | They have been verified to produce identical output in _gen. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=56758 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
* glib-client-gen: mark deprecated D-Bus methods as deprecatedJonny Lamb2009-12-021-1/+2
| | | | | | | Don't include the version string from the spec because it just makes things confusing. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Remove camelcase_to_lower, camelcase_to_upperSimon McVittie2009-05-271-2/+0
| | | | | In the face of ambiguity, refuse the temptation to guess. -Tim Peters, /The Python Way/ (see `python -c "import this"`)
* libglibcodegen: generate the right thing for 'ao'. DBUS_TYPE_G_OBJECT_ARRAY ↵Simon McVittie2008-07-011-1/+4
| | | | | | is an array of GObject (!), not an array of DBUS_TYPE_G_OBJECT_PATH 20080701103753-53eee-5e85006e30600c9e12e973317418ed1c595183f4.gz
* Add get_by_path(element, path) to libtpcodegen to support a pseudo-subset of ↵Olli Salli2008-06-171-0/+1
| | | | | | xpath lookups 20080617164816-9db4d-ccd47090d7fb5ff839ecf7a8b39876d79027779a.gz
* Explicit is better than implicit: use an explicit from/import list rather ↵Simon McVittie2008-05-301-1/+9
| | | | | | than "import *" to import bits of libtpcodegen into libglibcodegen 20080530154840-53eee-0ab43f49e76c1c27cca1ae24b1fc2f390fc857a7.gz
* Split libtpcodegen.py from libglibcodegen.pyOlli Salli2008-05-231-161/+2
| | | | 20080523163202-9db4d-2d2b8ebce0013446abee69a8cbf36a2cad8f2221.gz
* Fix generation of bindings for arrays of object-path ('ao') - GPtrArray, not ↵Simon McVittie2008-04-111-1/+1
| | | | | | | | GArray. Patch by Alberto Mardegan, taken from telepathy-mission-control. 20080411115021-53eee-b20f998fa9cde3065890097100dfc0f18f23dfe1.gz
* Don't use &#39; etc., it confuses gtkdoc...Simon McVittie2008-02-201-1/+1
| | | | 20080220125229-53eee-b7d7c6ce8be01646fd4c017a93a1a3088273b804.gz
* Avoid using CDATA where possibleSimon McVittie2008-02-201-0/+5
| | | | 20080220122959-53eee-6a829588d8e69565fcd8241df94932e4bbd810b7.gz
* Move get_docstring to libglibcodegen and make it work with elements that ↵Simon McVittie2007-12-141-0/+16
| | | | | | have children with docstrings 20071214132838-53eee-4931eed9ca9eee7593a917de8cead0495128a947.gz
* libglibcodegen.py: support arrays of arrays, and get [u]int64 right ↵Simon McVittie2007-12-031-6/+6
| | | | | | (modified patch from Marco Barisione) 20071203124418-53eee-7877c3e78124b02f28be9a28dcff3cd7db9deaf1.gz
* correct the LGPL 2.1 boilerplate (s/Library/Lesser/ and update FSF address)Robert McQueen2007-11-281-2/+2
| | | | 20071128015155-418b8-f91d29196624615cc785b327470cb638f04ec6d8.gz
* libglibcodegen.py: Add method_to_glue_marshal_name(), which returns the ↵Simon McVittie2007-11-261-5/+25
| | | | | | marshaller names used in dbus-glib glue code 20071126164431-53eee-04dd0a9fd5d392361f694fd5e195b6f372c828a3.gz
* Move camelcase_to_lower, camelcase_to_upper to libglibcodegenSimon McVittie2007-11-121-0/+26
| | | | 20071112142951-53eee-78b1f64c6b1b28bab767cda6974d346b2d41a9aa.gz
* Move more code to libglibcodegen.pySimon McVittie2007-11-121-0/+37
| | | | 20071112140857-53eee-4bfbc95023d4cbff4b052c8cea3d7b061a2c57f7.gz
* Add tools/libglibcodegen.py and start to move stuff into itSimon McVittie2007-11-121-0/+216
20071112133148-53eee-cc8be7b850ed4a6098697606eda2ece97894a3c3.gz