|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
From 0928169cf80bf767f7246ecaa52cc01e198bb15a Mon Sep 17 00:00:00 2001
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
From: Ivan Romanov <drizt land ru>
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
Date: Thu, 22 Aug 2013 19:11:23 +0100
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
Subject: [PATCH] Use iface instead of interface in function parameters
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66493
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
---
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus/dbus-message.c | 62 ++++++++++++++++++++++++++---------------------------
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus/dbus-message.h | 12 +++++------
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
2 files changed, 37 insertions(+), 37 deletions(-)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
index 5d3517c..079251e 100644
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
--- a/dbus/dbus-message.c
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+++ b/dbus/dbus-message.c
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -1259,7 +1259,7 @@ dbus_message_new (int message_type)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param destination name that the message should be sent to or #NULL
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param path object path the message should be sent to
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- * @param interface interface to invoke method on, or #NULL
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ * @param iface interface to invoke method on, or #NULL
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param method method to invoke
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @returns a new DBusMessage, free with dbus_message_unref()
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -1267,7 +1267,7 @@ dbus_message_new (int message_type)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBusMessage*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_message_new_method_call (const char *destination,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *path,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *method)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBusMessage *message;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -1277,8 +1277,8 @@ dbus_message_new_method_call (const char *destination,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (destination == NULL ||
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_check_is_valid_bus_name (destination), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (_dbus_check_is_valid_path (path), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_return_val_if_fail (interface == NULL ||
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_check_is_valid_interface (interface), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_return_val_if_fail (iface == NULL ||
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_check_is_valid_interface (iface), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (_dbus_check_is_valid_member (method), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
message = dbus_message_new_empty_header ();
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -1288,7 +1288,7 @@ dbus_message_new_method_call (const char *destination,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
if (!_dbus_header_create (&message->header,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_COMPILER_BYTE_ORDER,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_MESSAGE_TYPE_METHOD_CALL,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- destination, path, interface, method, NULL))
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ destination, path, iface, method, NULL))
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_message_unref (message);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return NULL;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -1351,22 +1351,22 @@ dbus_message_new_method_return (DBusMessage *method_call)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* specification defines the syntax of these fields).
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param path the path to the object emitting the signal
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- * @param interface the interface the signal is emitted from
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ * @param iface the interface the signal is emitted from
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param name name of the signal
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @returns a new DBusMessage, free with dbus_message_unref()
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*/
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBusMessage*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_message_new_signal (const char *path,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *name)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBusMessage *message;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (path != NULL, NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_return_val_if_fail (interface != NULL, NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_return_val_if_fail (iface != NULL, NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (name != NULL, NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (_dbus_check_is_valid_path (path), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_return_val_if_fail (_dbus_check_is_valid_interface (interface), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_return_val_if_fail (_dbus_check_is_valid_interface (iface), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (_dbus_check_is_valid_member (name), NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
message = dbus_message_new_empty_header ();
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -1376,7 +1376,7 @@ dbus_message_new_signal (const char *path,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
if (!_dbus_header_create (&message->header,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_COMPILER_BYTE_ORDER,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_MESSAGE_TYPE_SIGNAL,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- NULL, path, interface, name, NULL))
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ NULL, path, iface, name, NULL))
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_message_unref (message);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return NULL;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -3126,23 +3126,23 @@ dbus_message_get_path_decomposed (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* in the D-Bus specification.
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param message the message
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- * @param interface the interface or #NULL to unset
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ * @param iface the interface or #NULL to unset
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @returns #FALSE if not enough memory
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*/
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_message_set_interface (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (message != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (!message->locked, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_return_val_if_fail (interface == NULL ||
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_check_is_valid_interface (interface),
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_return_val_if_fail (iface == NULL ||
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_check_is_valid_interface (iface),
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return set_or_delete_string_field (message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_HEADER_FIELD_INTERFACE,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_TYPE_STRING,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- interface);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ iface);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
}
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
/**
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -3177,28 +3177,28 @@ dbus_message_get_interface (DBusMessage *message)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* Checks if the message has an interface
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param message the message
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- * @param interface the interface name
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ * @param iface the interface name
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @returns #TRUE if the interface field in the header matches
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*/
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_message_has_interface (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *msg_interface;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
msg_interface = dbus_message_get_interface (message);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
if (msg_interface == NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- if (interface == NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ if (iface == NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return TRUE;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
else
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return FALSE;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
}
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- if (interface == NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ if (iface == NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return FALSE;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- if (strcmp (msg_interface, interface) == 0)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ if (strcmp (msg_interface, iface) == 0)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return TRUE;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return FALSE;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -3490,13 +3490,13 @@ dbus_message_get_signature (DBusMessage *message)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
static dbus_bool_t
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_message_has_type_interface_member (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
int type,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *member)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *n;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_assert (message != NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_assert (interface != NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_assert (iface != NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_assert (member != NULL);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
if (dbus_message_get_type (message) != type)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -3512,7 +3512,7 @@ _dbus_message_has_type_interface_member (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
n = dbus_message_get_interface (message);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- if (n == NULL || strcmp (n, interface) == 0)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ if (n == NULL || strcmp (n, iface) == 0)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return TRUE;
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
}
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -3528,18 +3528,18 @@ _dbus_message_has_type_interface_member (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* protocol allows method callers to leave out the interface name.
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param message the message
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- * @param interface the name to check (must not be #NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ * @param iface the name to check (must not be #NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param method the name to check (must not be #NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @returns #TRUE if the message is the specified method call
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*/
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_message_is_method_call (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *method)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (message != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_return_val_if_fail (interface != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_return_val_if_fail (iface != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (method != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
/* don't check that interface/method are valid since it would be
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* expensive, and not catch many common errors
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -3547,7 +3547,7 @@ dbus_message_is_method_call (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return _dbus_message_has_type_interface_member (message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_MESSAGE_TYPE_METHOD_CALL,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- interface, method);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ iface, method);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
}
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
/**
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -3556,18 +3556,18 @@ dbus_message_is_method_call (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* has a different interface or member field, returns #FALSE.
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param message the message
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- * @param interface the name to check (must not be #NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ * @param iface the name to check (must not be #NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @param signal_name the name to check (must not be #NULL)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* @returns #TRUE if the message is the specified signal
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
*/
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_message_is_signal (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *signal_name)
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
{
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (message != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- _dbus_return_val_if_fail (interface != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ _dbus_return_val_if_fail (iface != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
_dbus_return_val_if_fail (signal_name != NULL, FALSE);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
/* don't check that interface/name are valid since it would be
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
* expensive, and not catch many common errors
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -3575,7 +3575,7 @@ dbus_message_is_signal (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
return _dbus_message_has_type_interface_member (message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_MESSAGE_TYPE_SIGNAL,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- interface, signal_name);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ iface, signal_name);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
}
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
/**
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
diff --git a/dbus/dbus-message.h b/dbus/dbus-message.h
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
index 5500492..4fd44da 100644
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
--- a/dbus/dbus-message.h
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+++ b/dbus/dbus-message.h
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -71,13 +71,13 @@ DBusMessage* dbus_message_new (int message_type);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBusMessage* dbus_message_new_method_call (const char *bus_name,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *path,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *method);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBusMessage* dbus_message_new_method_return (DBusMessage *method_call);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBusMessage* dbus_message_new_signal (const char *path,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *name);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBusMessage* dbus_message_new_error (DBusMessage *reply_to,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -108,12 +108,12 @@ dbus_bool_t dbus_message_has_path (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *object_path);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t dbus_message_set_interface (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char* dbus_message_get_interface (DBusMessage *message);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t dbus_message_has_interface (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t dbus_message_set_member (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *member);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
@@ -146,11 +146,11 @@ DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t dbus_message_get_no_reply (DBusMessage *message);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t dbus_message_is_method_call (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *method);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t dbus_message_is_signal (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
- const char *interface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
+ const char *iface,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
const char *signal_name);
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
DBUS_EXPORT
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
dbus_bool_t dbus_message_is_error (DBusMessage *message,
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
--
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
1.8.3.1
|
|
![](https://seccdn.libravatar.org/avatar/4b1cff0e6bd8493178ef3b0ff7e51503014b61690cfff9ff9d90f3c7b45e9b72?s=16&d=retro) |
a8262ca |
|