28#include "dbus-syntax.h"
30#include "dbus-internals.h"
31#include "dbus-marshal-validate.h"
32#include "dbus-shared.h"
62 _dbus_return_val_if_fail (path !=
NULL,
FALSE);
78 "Object path was not valid UTF-8");
84 "Object path was not valid: '%s'", path);
109 _dbus_return_val_if_fail (name !=
NULL,
FALSE);
125 "Interface name was not valid UTF-8");
131 "Interface name was not valid: '%s'", name);
156 _dbus_return_val_if_fail (name !=
NULL,
FALSE);
172 "Member name was not valid UTF-8");
178 "Member name was not valid: '%s'", name);
203 _dbus_return_val_if_fail (name !=
NULL,
FALSE);
219 "Error name was not valid UTF-8");
225 "Error name was not valid: '%s'", name);
250 _dbus_return_val_if_fail (name !=
NULL,
FALSE);
266 "Bus name was not valid UTF-8");
272 "Bus name was not valid: '%s'", name);
296 _dbus_return_val_if_fail (alleged_utf8 !=
NULL,
FALSE);
307 "String was not valid UTF-8");
void dbus_set_error(DBusError *error, const char *name, const char *format,...)
Assigns an error name and message to a DBusError.
#define NULL
A null pointer, defined appropriately for C or C++.
#define TRUE
Expands to "1".
#define FALSE
Expands to "0".
dbus_bool_t _dbus_validate_error_name(const DBusString *str, int start, int len)
Checks that the given range of the string is a valid error name in the D-Bus protocol.
dbus_bool_t _dbus_validate_member(const DBusString *str, int start, int len)
Checks that the given range of the string is a valid member name in the D-Bus protocol.
dbus_bool_t _dbus_validate_path(const DBusString *str, int start, int len)
Checks that the given range of the string is a valid object path name in the D-Bus protocol.
dbus_bool_t _dbus_validate_interface(const DBusString *str, int start, int len)
Checks that the given range of the string is a valid interface name in the D-Bus protocol.
dbus_bool_t _dbus_validate_bus_name(const DBusString *str, int start, int len)
Checks that the given range of the string is a valid bus name in the D-Bus protocol.
#define DBUS_ERROR_INVALID_ARGS
Invalid arguments passed to a method call.
void _dbus_string_init_const(DBusString *str, const char *value)
Initializes a constant string.
dbus_bool_t _dbus_string_validate_utf8(const DBusString *str, int start, int len)
Checks that the given range of the string is valid UTF-8.
int _dbus_string_get_length(const DBusString *str)
Gets the length of a string (not including nul termination).
dbus_bool_t dbus_validate_interface(const char *name, DBusError *error)
Check an interface name for validity.
dbus_bool_t dbus_validate_path(const char *path, DBusError *error)
Check an object path for validity.
dbus_bool_t dbus_validate_utf8(const char *alleged_utf8, DBusError *error)
Check a string for validity.
dbus_bool_t dbus_validate_member(const char *name, DBusError *error)
Check a member (method/signal) name for validity.
dbus_bool_t dbus_validate_bus_name(const char *name, DBusError *error)
Check a bus name for validity.
dbus_bool_t dbus_validate_error_name(const char *name, DBusError *error)
Check an error name for validity.
Object representing an exception.