diff options
| author | Michael Albinus | 2007-12-14 21:49:52 +0000 |
|---|---|---|
| committer | Michael Albinus | 2007-12-14 21:49:52 +0000 |
| commit | eb7c7bf54e9c84a35b76afd013e37f3443971680 (patch) | |
| tree | 68f60e996fba6f481adb2e05c841e1ceb9c1167e /src | |
| parent | 077e3aa88abcb13749b1de06409ae77c9c940c4b (diff) | |
| download | emacs-eb7c7bf54e9c84a35b76afd013e37f3443971680.tar.gz emacs-eb7c7bf54e9c84a35b76afd013e37f3443971680.zip | |
* dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/dbusbind.c | 30 |
2 files changed, 25 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index babf84e1e85..e9e03c914e1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2007-12-14 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbusbind.c (xd_retrieve_value, xd_retrieve_arg) | ||
| 4 | (Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use | ||
| 5 | `unsigned int' instead of `uint'. | ||
| 6 | (xd_read_message, Fdbus_register_signal): Split expressions into | ||
| 7 | multiple lines before operators "&&" and "||", according to the | ||
| 8 | GNU Coding Standards. | ||
| 9 | |||
| 1 | 2007-12-12 Juri Linkov <juri@jurta.org> | 10 | 2007-12-12 Juri Linkov <juri@jurta.org> |
| 2 | 11 | ||
| 3 | * buffer.c (Frename_buffer): In interactive spec replace | 12 | * buffer.c (Frename_buffer): In interactive spec replace |
diff --git a/src/dbusbind.c b/src/dbusbind.c index 29835772dc5..0ccccc8b22d 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -112,7 +112,7 @@ Lisp_Object Vdbus_debug; | |||
| 112 | message. */ | 112 | message. */ |
| 113 | char * | 113 | char * |
| 114 | xd_retrieve_value (dtype, object) | 114 | xd_retrieve_value (dtype, object) |
| 115 | uint dtype; | 115 | unsigned int dtype; |
| 116 | Lisp_Object object; | 116 | Lisp_Object object; |
| 117 | { | 117 | { |
| 118 | 118 | ||
| @@ -146,7 +146,7 @@ xd_retrieve_value (dtype, object) | |||
| 146 | partly supported; they result always in a Lisp list. */ | 146 | partly supported; they result always in a Lisp list. */ |
| 147 | Lisp_Object | 147 | Lisp_Object |
| 148 | xd_retrieve_arg (dtype, iter) | 148 | xd_retrieve_arg (dtype, iter) |
| 149 | uint dtype; | 149 | unsigned int dtype; |
| 150 | DBusMessageIter *iter; | 150 | DBusMessageIter *iter; |
| 151 | { | 151 | { |
| 152 | 152 | ||
| @@ -316,7 +316,7 @@ usage: (dbus-call-method BUS SERVICE PATH INTERFACE METHOD &rest ARGS) */) | |||
| 316 | DBusMessage *reply; | 316 | DBusMessage *reply; |
| 317 | DBusMessageIter iter; | 317 | DBusMessageIter iter; |
| 318 | DBusError derror; | 318 | DBusError derror; |
| 319 | uint dtype; | 319 | unsigned int dtype; |
| 320 | int i; | 320 | int i; |
| 321 | char *value; | 321 | char *value; |
| 322 | 322 | ||
| @@ -459,7 +459,7 @@ usage: (dbus-send-signal BUS SERVICE PATH INTERFACE SIGNAL &rest ARGS) */) | |||
| 459 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 459 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 460 | DBusConnection *connection; | 460 | DBusConnection *connection; |
| 461 | DBusMessage *dmessage; | 461 | DBusMessage *dmessage; |
| 462 | uint dtype; | 462 | unsigned int dtype; |
| 463 | int i; | 463 | int i; |
| 464 | char *value; | 464 | char *value; |
| 465 | 465 | ||
| @@ -549,7 +549,7 @@ xd_read_message (bus) | |||
| 549 | DBusConnection *connection; | 549 | DBusConnection *connection; |
| 550 | DBusMessage *dmessage; | 550 | DBusMessage *dmessage; |
| 551 | DBusMessageIter iter; | 551 | DBusMessageIter iter; |
| 552 | uint dtype; | 552 | unsigned int dtype; |
| 553 | char uname[DBUS_MAXIMUM_NAME_LENGTH]; | 553 | char uname[DBUS_MAXIMUM_NAME_LENGTH]; |
| 554 | char path[DBUS_MAXIMUM_MATCH_RULE_LENGTH]; /* Unlimited in D-Bus spec. */ | 554 | char path[DBUS_MAXIMUM_MATCH_RULE_LENGTH]; /* Unlimited in D-Bus spec. */ |
| 555 | char interface[DBUS_MAXIMUM_NAME_LENGTH]; | 555 | char interface[DBUS_MAXIMUM_NAME_LENGTH]; |
| @@ -605,11 +605,13 @@ xd_read_message (bus) | |||
| 605 | { | 605 | { |
| 606 | key = XCAR (value); | 606 | key = XCAR (value); |
| 607 | /* key has the structure (SERVICE UNAME PATH HANDLER). */ | 607 | /* key has the structure (SERVICE UNAME PATH HANDLER). */ |
| 608 | if (((uname == NULL) || (NILP (XCAR (XCDR (key)))) || | 608 | if (((uname == NULL) |
| 609 | (strcmp (uname, SDATA (XCAR (XCDR (key)))) == 0)) && | 609 | || (NILP (XCAR (XCDR (key)))) |
| 610 | ((path == NULL) || (NILP (XCAR (XCDR (XCDR (key))))) || | 610 | || (strcmp (uname, SDATA (XCAR (XCDR (key)))) == 0)) |
| 611 | (strcmp (path, SDATA (XCAR (XCDR (XCDR (key))))) == 0)) && | 611 | && ((path == NULL) |
| 612 | (!NILP (XCAR (XCDR (XCDR (XCDR (key))))))) | 612 | || (NILP (XCAR (XCDR (XCDR (key))))) |
| 613 | || (strcmp (path, SDATA (XCAR (XCDR (XCDR (key))))) == 0)) | ||
| 614 | && (!NILP (XCAR (XCDR (XCDR (XCDR (key))))))) | ||
| 613 | { | 615 | { |
| 614 | EVENT_INIT (event); | 616 | EVENT_INIT (event); |
| 615 | event.kind = DBUS_EVENT; | 617 | event.kind = DBUS_EVENT; |
| @@ -710,10 +712,10 @@ SIGNAL and HANDLER must not be nil. Example: | |||
| 710 | will register for the corresponding unique name, if any. Signals | 712 | will register for the corresponding unique name, if any. Signals |
| 711 | are sent always with the unique name as sender. Note: the unique | 713 | are sent always with the unique name as sender. Note: the unique |
| 712 | name of "org.freedesktop.DBus" is that string itself. */ | 714 | name of "org.freedesktop.DBus" is that string itself. */ |
| 713 | if ((!NILP (service)) && | 715 | if ((!NILP (service)) |
| 714 | (strlen (SDATA (service)) > 0) && | 716 | && (strlen (SDATA (service)) > 0) |
| 715 | (strcmp (SDATA (service), DBUS_SERVICE_DBUS) != 0) && | 717 | && (strcmp (SDATA (service), DBUS_SERVICE_DBUS) != 0) |
| 716 | (strncmp (SDATA (service), ":", 1) != 0)) | 718 | && (strncmp (SDATA (service), ":", 1) != 0)) |
| 717 | unique_name = call2 (intern ("dbus-get-name-owner"), bus, service); | 719 | unique_name = call2 (intern ("dbus-get-name-owner"), bus, service); |
| 718 | else | 720 | else |
| 719 | unique_name = service; | 721 | unique_name = service; |