1. 24 Oct, 2008 1 commit
  2. 19 Oct, 2008 1 commit
  3. 16 Oct, 2008 1 commit
  4. 30 Sep, 2008 1 commit
  5. 28 Aug, 2008 1 commit
  6. 01 Aug, 2008 1 commit
  7. 31 Jul, 2008 1 commit
  8. 21 Jul, 2008 1 commit
  9. 13 Jul, 2008 1 commit
  10. 14 May, 2008 1 commit
  11. 13 Apr, 2008 1 commit
  12. 30 Mar, 2008 1 commit
  13. 23 Mar, 2008 1 commit
  14. 25 Jan, 2008 1 commit
  15. 21 Jan, 2008 1 commit
  16. 04 Jan, 2008 1 commit
  17. 03 Jan, 2008 3 commits
  18. 31 Dec, 2007 2 commits
  19. 30 Dec, 2007 2 commits
    • Michael Albinus's avatar
      *** empty log message *** · 80f9d13b
      Michael Albinus authored
      80f9d13b
    • Michael Albinus's avatar
      * dbusbind.c: Fix several errors and compiler warnings. Reported · 17bc8f94
      Michael Albinus authored
      by Tom Tromey <tromey@redhat.com>
      (XD_ERROR, XD_DEBUG_MESSAGE)
      (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
      (xd_append_arg): Part for basic D-Bus types rewitten.
      (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
      DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
      appropriate.
      (xd_read_message): Return Qnil.  Don't signal an error; it is not
      useful during event reading.
      (Fdbus_register_signal): Signal an error if the check for
      FUNCTIONP fails.
      (Fdbus_register_method): New function.  The implementation is not
      complete, the call of the function signals an error therefore.
      (Fdbus_unregister_object): New function, renamed from
      Fdbus_unregister_signal.  The initial check signals an error, if
      it the objct is not well formed.
      17bc8f94
  20. 22 Dec, 2007 2 commits
  21. 21 Dec, 2007 1 commit
    • Michael Albinus's avatar
      * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE): · 87cf1a39
      Michael Albinus authored
      New macros.
      (XD_SYMBOL_TO_DBUS_TYPE): Renamed from
      XD_LISP_SYMBOL_TO_DBUS_TYPE.
      (XD_OBJECT_TO_DBUS_TYPE): Renamed from
      XD_LISP_OBJECT_TO_DBUS_TYPE. Simplify.
      (xd_signature): New function.
      (xd_append_arg): Compute also signatures.  Major rewrite.
      (xd_retrieve_arg): Make debug messages friendly.
      (Fdbus_call_method, Fdbus_send_signal): Extend docstring.  Check
      for signatures of arguments.
      87cf1a39
  22. 19 Dec, 2007 1 commit
    • Michael Albinus's avatar
      * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean) · 54371585
      Michael Albinus authored
      (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
      (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
      (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
      (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
      (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type
      symbols.
      (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
      (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
      (xd_retrieve_value): Removed. Functionality included in ...
      (xd_append_arg): New function.
      (Fdbus_call_method, Fdbus_send_signal): Apply it.
      54371585
  23. 16 Dec, 2007 1 commit
    • Michael Albinus's avatar
      * dbusbind.c (top): Include <stdio.h>. · f5306ca3
      Michael Albinus authored
      (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
      dbus_message_new_method_call and dbus_message_new_signal.
      (Fdbus_register_signal): Rename unique_name to uname.  Check
      handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
      non-existing unique name.  Fix typos in matching rule.  Return an
      object which is useful in Fdbus_unregister_signal.
      (Fdbus_unregister_signal): Reimplementation, in order to remove
      only the corresponding entry.
      (Vdbus_registered_functions_table): Change the order of entries.
      Apply these changes in xd_read_message and Fdbus_register_signal.
      f5306ca3
  24. 14 Dec, 2007 1 commit
    • Michael Albinus's avatar
      * dbusbind.c (xd_retrieve_value, xd_retrieve_arg) · eb7c7bf5
      Michael Albinus authored
      (Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use
      `unsigned int' instead of `uint'.
      (xd_read_message, Fdbus_register_signal): Split expressions into
      multiple lines before operators "&&" and "||", according to the
      GNU Coding Standards.
      eb7c7bf5
  25. 08 Dec, 2007 1 commit
    • Michael Albinus's avatar
      * dbusbind.c (xd_read_message): Generate an event for every · a31d47c7
      Michael Albinus authored
      registered handler.  There might be several handlers registered
      for the same signal.
      (Fdbus_register_signal): Don't overwrite a registration for the
      same signal.  Add a new registration if handlers are different.
      (Vdbus_registered_functions_table): Rework doc string.
      a31d47c7
  26. 07 Dec, 2007 1 commit
    • Michael Albinus's avatar
      * dbusbind.c (Fdbus_get_unique_name, xd_read_message) · 52da95fa
      Michael Albinus authored
      (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
      DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
      (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
      Unify argument lists.
      (xd_read_message, Fdbus_register_signal) Reorder and extend event
      arguments and hash table keys.  Use unique name for service.
      (Fdbus_unregister_signal): Remove checks.
      (Vdbus_registered_functions_table): Fix doc string.
      52da95fa
  27. 05 Dec, 2007 1 commit
  28. 04 Dec, 2007 2 commits
  29. 02 Dec, 2007 1 commit
    • 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