Path: blob/master/thirdparty/linuxbsd_headers/dbus/dbus-signature.h
9898 views
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */1/* dbus-signatures.h utility functions for D-Bus types2*3* Copyright (C) 2005 Red Hat Inc.4*5* Licensed under the Academic Free License version 2.16*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA20*21*/22#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)23#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."24#endif2526#ifndef DBUS_SIGNATURES_H27#define DBUS_SIGNATURES_H2829#include <dbus/dbus-macros.h>30#include <dbus/dbus-types.h>31#include <dbus/dbus-errors.h>3233DBUS_BEGIN_DECLS3435/**36* @addtogroup DBusSignature37* @{38*/3940/**41* DBusSignatureIter struct; contains no public fields42*/43typedef struct44{45void *dummy1; /**< Don't use this */46void *dummy2; /**< Don't use this */47dbus_uint32_t dummy8; /**< Don't use this */48int dummy12; /**< Don't use this */49int dummy17; /**< Don't use this */50} DBusSignatureIter;5152DBUS_EXPORT53void dbus_signature_iter_init (DBusSignatureIter *iter,54const char *signature);5556DBUS_EXPORT57int dbus_signature_iter_get_current_type (const DBusSignatureIter *iter);5859DBUS_EXPORT60char * dbus_signature_iter_get_signature (const DBusSignatureIter *iter);6162DBUS_EXPORT63int dbus_signature_iter_get_element_type (const DBusSignatureIter *iter);6465DBUS_EXPORT66dbus_bool_t dbus_signature_iter_next (DBusSignatureIter *iter);6768DBUS_EXPORT69void dbus_signature_iter_recurse (const DBusSignatureIter *iter,70DBusSignatureIter *subiter);7172DBUS_EXPORT73dbus_bool_t dbus_signature_validate (const char *signature,74DBusError *error);7576DBUS_EXPORT77dbus_bool_t dbus_signature_validate_single (const char *signature,78DBusError *error);7980DBUS_EXPORT81dbus_bool_t dbus_type_is_valid (int typecode);8283DBUS_EXPORT84dbus_bool_t dbus_type_is_basic (int typecode);85DBUS_EXPORT86dbus_bool_t dbus_type_is_container (int typecode);87DBUS_EXPORT88dbus_bool_t dbus_type_is_fixed (int typecode);8990/** @} */9192DBUS_END_DECLS9394#endif /* DBUS_SIGNATURE_H */959697