Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:13

0001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
0002 /* dbus-syntax.h - utility functions for strings with special syntax
0003  *
0004  * Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
0005  * Copyright © 2011 Nokia Corporation
0006  *
0007  * Licensed under the Academic Free License version 2.1
0008  *
0009  * This program is free software; you can redistribute it and/or modify
0010  * it under the terms of the GNU General Public License as published by
0011  * the Free Software Foundation; either version 2 of the License, or
0012  * (at your option) any later version.
0013  *
0014  * This program is distributed in the hope that it will be useful,
0015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  * GNU General Public License for more details.
0018  *
0019  * You should have received a copy of the GNU General Public License
0020  * along with this program; if not, write to the Free Software
0021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0022  *
0023  */
0024 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
0025 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
0026 #endif
0027 
0028 #ifndef DBUS_SYNTAX_H
0029 #define DBUS_SYNTAX_H
0030 
0031 #include <dbus/dbus-macros.h>
0032 #include <dbus/dbus-types.h>
0033 #include <dbus/dbus-errors.h>
0034 
0035 DBUS_BEGIN_DECLS
0036 
0037 DBUS_EXPORT
0038 dbus_bool_t     dbus_validate_path                   (const char *path,
0039                                                       DBusError  *error);
0040 DBUS_EXPORT
0041 dbus_bool_t     dbus_validate_interface              (const char *name,
0042                                                       DBusError  *error);
0043 DBUS_EXPORT
0044 dbus_bool_t     dbus_validate_member                 (const char *name,
0045                                                       DBusError  *error);
0046 DBUS_EXPORT
0047 dbus_bool_t     dbus_validate_error_name             (const char *name,
0048                                                       DBusError  *error);
0049 DBUS_EXPORT
0050 dbus_bool_t     dbus_validate_bus_name               (const char *name,
0051                                                       DBusError  *error);
0052 DBUS_EXPORT
0053 dbus_bool_t     dbus_validate_utf8                   (const char *alleged_utf8,
0054                                                       DBusError  *error);
0055 
0056 DBUS_END_DECLS
0057 
0058 #endif /* multiple-inclusion guard */