summaryrefslogtreecommitdiff
path: root/atspi/atspi-device-listener.c
Commit message (Collapse)AuthorAgeFilesLines
* Reformat all the *.[ch] files with clang-formatFederico Mena Quintero2022-12-061-59/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I ran this on each directory with C files: clang-format -i *.[ch] "-i" is the in-place option. I also adjusted the order of #includes for some files which failed to build after that: Clang-format reorders blocks of #include directives alphabetically, but they can be grouped and separated by blank lines. If there is a blank line between blocks, like #include "zork.h" #include "bar.h" #include "foo.h" then it will not put zork.h after the other two. The last two header files will be sorted alphabetically. We can adjust the formatting of chunks of code by hand with comments like these: /* clang-format off */ this code { is, formatted, by, hand; } /* clang-format on */ See https://clang.llvm.org/docs/ClangFormat.html for the general manual and https://clang.llvm.org/docs/ClangFormatStyleOptions.html for the style options and the comments described above.
* Docs: Move to gi-docgenThomas Booker2022-09-281-0/+10
|
* fix typoNozomi Miyamori2022-06-191-1/+1
|
* Remove unused field BusDataClosure.dataFederico Mena Quintero2022-06-021-1/+1
| | | | | | | | | | | | | | | | The comment "TODO this is still memory leak on c->data" from destroy_deferred_message_item() caught my eye, so I went looking for what uses it. defer_message() is the only place that creates BusDataClosure structs, and gets passed the data field. However, the only caller of defer_message() is dbus_connection_add_filter(), and *that* call is done with both NULL user_data and free_data_function. So, defer_message() will always get data=NULL. This commit also removes all the "void *user_data" arguments from the functions called by process_deferred_message(); they just got passed the closure->data but none of them actually use it.
* Fix function prototypeFederico Mena Quintero2021-11-231-1/+1
| | | | | device_remove_datum already implicitly casts its cb to a AtspiDeviceListenerSimpleCB, which takes a const *event.
* Minor code clean-upMike Gorse2020-09-041-4/+5
|
* Fix use-after-free when a device listener is destroyedColomban Wendling2020-06-111-1/+3
| | | | Fixes #22.
* Relicense as LGPL 2.1Mike Gorse2019-08-281-4/+4
| | | | Fixes https://gitlab.gnome.org/GNOME/at-spi2-core/issues/2
* Fix outdated FSF addressMike Gorse2019-08-271-2/+2
|
* atspi: Update error logsTapasweni Pathak2018-10-041-3/+3
| | | | Error logs has different naming convention in atspi/ files.
* Fix a couple of introspection issuesRico Tzschichholz2017-07-031-4/+0
| | | | | | This mainly restores the gir entry for AtspiApplication. https://bugzilla.gnome.org/show_bug.cgi?id=784481
* Skip atspi_(event|device)_listener_new_simpleMike Gorse2013-07-151-1/+1
| | | | | | These are intended as C convenience functions. Gjs doesn't support having a GDestroyNotify without a user_data and prints out a warning, so might as well skip for purposes of introspection.
* Fix atspi_device_listener_new_simple and some other warningsMike Gorse2012-11-261-2/+2
|
* Code clean-upsMike Gorse2012-07-181-10/+2
| | | | | There isn't really any point in checking for GLib functions returning NULL due to lack of memory, since they just abort instead.
* Warn if a device listener returns a non-bool, rather than crashMike Gorse2011-12-291-0/+5
|
* Improving atspi-devicelistener documentation.Aline Bessa2011-08-231-13/+14
|
* Clean up names of private functionsMike Gorse2011-07-261-4/+1
| | | | | If a function is non-static and not intended to be public, then precede its name with an _.
* API changes to device and event listeners for compatibility with jsMike Gorse2011-07-061-9/+9
| | | | | | | | | | | | | | Skip atspi_device_listener_new_simple and atspi-event_listener_new_simple, since Javascript throws an error for callback functions that don't provide user_data. Add atspi_event_listener_new. Change order of user_data and destroy notify parameters in atspi_device_listener_new to match the order used other places in GNOME. The old order was triggering an IndexError because of what appears to be a bug in pygobject. Note that this is an API change and would ordinarily be a bad idea, but at this point I don't know of anyone using libatspi directly, so going to commit it. Some introspection fixes.
* Remove some redundant out-of-memory checksMike Gorse2011-05-051-2/+0
| | | | | | | If malloc returns NULL, then g_malloc will call g_error and thus abort, so it is redundant to check the return value of g_new0 and the like, since glib will already have aborted the program rather than returning a NULL value. "Cleaning up" the code by removing some of these checks.
* Device events now use uint32 for hw_code and modifiers in the IPCMike Gorse2011-02-241-5/+6
| | | | | | | Changed device event IPC to use uint32 for hw_code and modifiers, to be more consistent with the rest of the API. Kept AT-SPI struct using gushorts to avoid ABI break, and the registry daemon will continue to accept the old API as well as the new for now.
* Update copyright and add some missing license infoMike Gorse2011-01-311-0/+1
|
* Fix most compiler warnings and various miscellaneous problemsMike Gorse2011-01-281-12/+1
|
* Various fixesMike Gorse2010-11-291-10/+104
| | | | | | | Events and DeviceEvents are now sent with transfer full to work around a possible pygi bug. Various other fixes.
* Some work on event support; many bug fixesMike Gorse2010-11-051-0/+331