26 #include "dbus-syntax.h"
28 #include "dbus-internals.h"
29 #include "dbus-marshal-validate.h"
30 #include "dbus-shared.h"
60 _dbus_return_val_if_fail (path !=
NULL,
FALSE);
76 "Object path was not valid UTF-8");
82 "Object path was not valid: '%s'", path);
107 _dbus_return_val_if_fail (name !=
NULL,
FALSE);
123 "Interface name was not valid UTF-8");
129 "Interface name was not valid: '%s'", name);
154 _dbus_return_val_if_fail (name !=
NULL,
FALSE);
170 "Member name was not valid UTF-8");
176 "Member name was not valid: '%s'", name);
201 _dbus_return_val_if_fail (name !=
NULL,
FALSE);
217 "Error name was not valid UTF-8");
223 "Error name was not valid: '%s'", name);
248 _dbus_return_val_if_fail (name !=
NULL,
FALSE);
264 "Bus name was not valid UTF-8");
270 "Bus name was not valid: '%s'", name);
294 _dbus_return_val_if_fail (alleged_utf8 !=
NULL,
FALSE);
305 "String was not valid UTF-8");
#define NULL
A null pointer, defined appropriately for C or C++.
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.
dbus_bool_t dbus_validate_error_name(const char *name, DBusError *error)
Check an error name for validity.
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_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 char *path, DBusError *error)
Check an object path for validity.
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_uint32_t dbus_bool_t
A boolean, valid values are TRUE and FALSE.
void _dbus_string_init_const(DBusString *str, const char *value)
Initializes a constant string.
int _dbus_string_get_length(const DBusString *str)
Gets the length of a string (not including nul termination).
Object representing an exception.
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.
void dbus_set_error(DBusError *error, const char *name, const char *format,...)
Assigns an error name and message to a DBusError.
dbus_bool_t dbus_validate_utf8(const char *alleged_utf8, DBusError *error)
Check a string for validity.
dbus_bool_t dbus_validate_interface(const char *name, DBusError *error)
Check an interface name for validity.
#define TRUE
Expands to "1".
dbus_bool_t dbus_validate_bus_name(const char *name, DBusError *error)
Check a bus name for validity.
#define FALSE
Expands to "0".
#define DBUS_ERROR_INVALID_ARGS
Invalid arguments passed to a method call.
dbus_bool_t dbus_validate_member(const char *name, DBusError *error)
Check a member (method/signal) name for validity.