• Michael Albinus's avatar
    * config.in (HAVE_DBUS): Add. · 033b73e2
    Michael Albinus authored
    * Makefile.in: (HAVE_DBUS): Add D-Bus definitions if defined.
    (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
    (obj): Add $(DBUS_OBJ).
    (LIBES): Add $(DBUS_LIBS).
    (dbusbind.o): New target.
    
    * dbusbind.c: New file.
    
    * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
    
    * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
    (Qdbus_event) New Lisp symbol.
    (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
    (gobble_input): Call xd_read_queued_messages, reading D-Bus
    messages.
    (keys_of_keyboard ): Define dbus-event.
    
    * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
    033b73e2
dbusbind.c 23.8 KB