D-Bus  1.10.12
dbus-syntax.h
00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
00002 /* dbus-syntax.h - utility functions for strings with special syntax
00003  *
00004  * Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
00005  * Copyright © 2011 Nokia Corporation
00006  *
00007  * Licensed under the Academic Free License version 2.1
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00022  *
00023  */
00024 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
00025 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
00026 #endif
00027 
00028 #ifndef DBUS_SYNTAX_H
00029 #define DBUS_SYNTAX_H
00030 
00031 #include <dbus/dbus-macros.h>
00032 #include <dbus/dbus-types.h>
00033 #include <dbus/dbus-errors.h>
00034 
00035 DBUS_BEGIN_DECLS
00036 
00037 DBUS_EXPORT
00038 dbus_bool_t     dbus_validate_path                   (const char *path,
00039                                                       DBusError  *error);
00040 DBUS_EXPORT
00041 dbus_bool_t     dbus_validate_interface              (const char *name,
00042                                                       DBusError  *error);
00043 DBUS_EXPORT
00044 dbus_bool_t     dbus_validate_member                 (const char *name,
00045                                                       DBusError  *error);
00046 DBUS_EXPORT
00047 dbus_bool_t     dbus_validate_error_name             (const char *name,
00048                                                       DBusError  *error);
00049 DBUS_EXPORT
00050 dbus_bool_t     dbus_validate_bus_name               (const char *name,
00051                                                       DBusError  *error);
00052 DBUS_EXPORT
00053 dbus_bool_t     dbus_validate_utf8                   (const char *alleged_utf8,
00054                                                       DBusError  *error);
00055 
00056 DBUS_END_DECLS
00057 
00058 #endif /* multiple-inclusion guard */