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);
    63   len = _dbus_string_get_length (&str);
    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);
   110   len = _dbus_string_get_length (&str);
   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);
   157   len = _dbus_string_get_length (&str);
   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);
   204   len = _dbus_string_get_length (&str);
   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);
   251   len = _dbus_string_get_length (&str);
   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);
   299                                                 _dbus_string_get_length (&str))))
   305                   "String was not valid UTF-8");
 #define NULL
A null pointer, defined appropriately for C or C++. 
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_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_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_path(const char *path, DBusError *error)
Check an object path for validity. 
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. 
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. 
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. 
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.