Path: blob/master/thirdparty/linuxbsd_headers/dbus/dbus-syntax.h
9898 views
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */1/* dbus-syntax.h - utility functions for strings with special syntax2*3* Author: Simon McVittie <[email protected]>4* Copyright © 2011 Nokia Corporation5*6* Licensed under the Academic Free License version 2.17*8* This program is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2 of the License, or11* (at your option) any later version.12*13* This program is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16* GNU General Public License for more details.17*18* You should have received a copy of the GNU General Public License19* along with this program; if not, write to the Free Software20* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA21*22*/23#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)24#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."25#endif2627#ifndef DBUS_SYNTAX_H28#define DBUS_SYNTAX_H2930#include <dbus/dbus-macros.h>31#include <dbus/dbus-types.h>32#include <dbus/dbus-errors.h>3334DBUS_BEGIN_DECLS3536DBUS_EXPORT37dbus_bool_t dbus_validate_path (const char *path,38DBusError *error);39DBUS_EXPORT40dbus_bool_t dbus_validate_interface (const char *name,41DBusError *error);42DBUS_EXPORT43dbus_bool_t dbus_validate_member (const char *name,44DBusError *error);45DBUS_EXPORT46dbus_bool_t dbus_validate_error_name (const char *name,47DBusError *error);48DBUS_EXPORT49dbus_bool_t dbus_validate_bus_name (const char *name,50DBusError *error);51DBUS_EXPORT52dbus_bool_t dbus_validate_utf8 (const char *alleged_utf8,53DBusError *error);5455DBUS_END_DECLS5657#endif /* multiple-inclusion guard */585960