diff options
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index 9de694954d4..3bdec0fa4a6 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -41,37 +41,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | #endif | 41 | #endif |
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | /* Subroutines. */ | ||
| 45 | static Lisp_Object Qdbus__init_bus; | ||
| 46 | static Lisp_Object Qdbus_get_unique_name; | ||
| 47 | static Lisp_Object Qdbus_message_internal; | ||
| 48 | |||
| 49 | /* D-Bus error symbol. */ | ||
| 50 | static Lisp_Object Qdbus_error; | ||
| 51 | |||
| 52 | /* Lisp symbols of the system and session buses. */ | ||
| 53 | static Lisp_Object QCdbus_system_bus, QCdbus_session_bus; | ||
| 54 | |||
| 55 | /* Lisp symbol for method call timeout. */ | ||
| 56 | static Lisp_Object QCdbus_timeout; | ||
| 57 | |||
| 58 | /* Lisp symbols of D-Bus types. */ | ||
| 59 | static Lisp_Object QCdbus_type_byte, QCdbus_type_boolean; | ||
| 60 | static Lisp_Object QCdbus_type_int16, QCdbus_type_uint16; | ||
| 61 | static Lisp_Object QCdbus_type_int32, QCdbus_type_uint32; | ||
| 62 | static Lisp_Object QCdbus_type_int64, QCdbus_type_uint64; | ||
| 63 | static Lisp_Object QCdbus_type_double, QCdbus_type_string; | ||
| 64 | static Lisp_Object QCdbus_type_object_path, QCdbus_type_signature; | ||
| 65 | #ifdef DBUS_TYPE_UNIX_FD | ||
| 66 | static Lisp_Object QCdbus_type_unix_fd; | ||
| 67 | #endif | ||
| 68 | static Lisp_Object QCdbus_type_array, QCdbus_type_variant; | ||
| 69 | static Lisp_Object QCdbus_type_struct, QCdbus_type_dict_entry; | ||
| 70 | |||
| 71 | /* Lisp symbols of objects in `dbus-registered-objects-table'. */ | ||
| 72 | static Lisp_Object QCdbus_registered_serial, QCdbus_registered_method; | ||
| 73 | static Lisp_Object QCdbus_registered_signal; | ||
| 74 | |||
| 75 | /* Alist of D-Bus buses we are polling for messages. | 44 | /* Alist of D-Bus buses we are polling for messages. |
| 76 | The key is the symbol or string of the bus, and the value is the | 45 | The key is the symbol or string of the bus, and the value is the |
| 77 | connection address. */ | 46 | connection address. */ |
| @@ -1755,15 +1724,21 @@ syms_of_dbusbind (void) | |||
| 1755 | DEFSYM (Qdbus_message_internal, "dbus-message-internal"); | 1724 | DEFSYM (Qdbus_message_internal, "dbus-message-internal"); |
| 1756 | defsubr (&Sdbus_message_internal); | 1725 | defsubr (&Sdbus_message_internal); |
| 1757 | 1726 | ||
| 1727 | /* D-Bus error symbol. */ | ||
| 1758 | DEFSYM (Qdbus_error, "dbus-error"); | 1728 | DEFSYM (Qdbus_error, "dbus-error"); |
| 1759 | Fput (Qdbus_error, Qerror_conditions, | 1729 | Fput (Qdbus_error, Qerror_conditions, |
| 1760 | list2 (Qdbus_error, Qerror)); | 1730 | list2 (Qdbus_error, Qerror)); |
| 1761 | Fput (Qdbus_error, Qerror_message, | 1731 | Fput (Qdbus_error, Qerror_message, |
| 1762 | build_pure_c_string ("D-Bus error")); | 1732 | build_pure_c_string ("D-Bus error")); |
| 1763 | 1733 | ||
| 1734 | /* Lisp symbols of the system and session buses. */ | ||
| 1764 | DEFSYM (QCdbus_system_bus, ":system"); | 1735 | DEFSYM (QCdbus_system_bus, ":system"); |
| 1765 | DEFSYM (QCdbus_session_bus, ":session"); | 1736 | DEFSYM (QCdbus_session_bus, ":session"); |
| 1737 | |||
| 1738 | /* Lisp symbol for method call timeout. */ | ||
| 1766 | DEFSYM (QCdbus_timeout, ":timeout"); | 1739 | DEFSYM (QCdbus_timeout, ":timeout"); |
| 1740 | |||
| 1741 | /* Lisp symbols of D-Bus types. */ | ||
| 1767 | DEFSYM (QCdbus_type_byte, ":byte"); | 1742 | DEFSYM (QCdbus_type_byte, ":byte"); |
| 1768 | DEFSYM (QCdbus_type_boolean, ":boolean"); | 1743 | DEFSYM (QCdbus_type_boolean, ":boolean"); |
| 1769 | DEFSYM (QCdbus_type_int16, ":int16"); | 1744 | DEFSYM (QCdbus_type_int16, ":int16"); |
| @@ -1783,6 +1758,8 @@ syms_of_dbusbind (void) | |||
| 1783 | DEFSYM (QCdbus_type_variant, ":variant"); | 1758 | DEFSYM (QCdbus_type_variant, ":variant"); |
| 1784 | DEFSYM (QCdbus_type_struct, ":struct"); | 1759 | DEFSYM (QCdbus_type_struct, ":struct"); |
| 1785 | DEFSYM (QCdbus_type_dict_entry, ":dict-entry"); | 1760 | DEFSYM (QCdbus_type_dict_entry, ":dict-entry"); |
| 1761 | |||
| 1762 | /* Lisp symbols of objects in `dbus-registered-objects-table'. */ | ||
| 1786 | DEFSYM (QCdbus_registered_serial, ":serial"); | 1763 | DEFSYM (QCdbus_registered_serial, ":serial"); |
| 1787 | DEFSYM (QCdbus_registered_method, ":method"); | 1764 | DEFSYM (QCdbus_registered_method, ":method"); |
| 1788 | DEFSYM (QCdbus_registered_signal, ":signal"); | 1765 | DEFSYM (QCdbus_registered_signal, ":signal"); |