epoc32/include/stdapis/dbus-1.0/dbus/dbus-signature.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/dbus-1.0/dbus/dbus-signature.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,114 @@
     1.4 +/* -*- mode: C; c-file-style: "gnu" -*- */
     1.5 +/* dbus-signatures.h utility functions for D-Bus types
     1.6 + *
     1.7 + * Copyright (C) 2005 Red Hat Inc.
     1.8 + * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
     1.9 + * Licensed under the Academic Free License version 2.1
    1.10 + * 
    1.11 + * This program is free software; you can redistribute it and/or modify
    1.12 + * it under the terms of the GNU General Public License as published by
    1.13 + * the Free Software Foundation; either version 2 of the License, or
    1.14 + * (at your option) any later version.
    1.15 + *
    1.16 + * This program is distributed in the hope that it will be useful,
    1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.19 + * GNU General Public License for more details.
    1.20 + * 
    1.21 + * You should have received a copy of the GNU General Public License
    1.22 + * along with this program; if not, write to the Free Software
    1.23 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.24 + *
    1.25 + */
    1.26 +#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
    1.27 +#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
    1.28 +#endif
    1.29 +
    1.30 +#ifndef DBUS_SIGNATURES_H
    1.31 +#define DBUS_SIGNATURES_H
    1.32 +
    1.33 +#include <dbus/dbus-macros.h>
    1.34 +#include <dbus/dbus-types.h>
    1.35 +#include <dbus/dbus-errors.h>
    1.36 +
    1.37 +DBUS_BEGIN_DECLS
    1.38 +
    1.39 +/**
    1.40 + * @addtogroup DBusSignature
    1.41 + * @{
    1.42 + */
    1.43 +
    1.44 +/**
    1.45 + * DBusSignatureIter struct; contains no public fields 
    1.46 + */
    1.47 +typedef struct
    1.48 +{ 
    1.49 +  void *dummy1;         /**< Don't use this */
    1.50 +  void *dummy2;         /**< Don't use this */
    1.51 +  dbus_uint32_t dummy8; /**< Don't use this */
    1.52 +  int dummy12;           /**< Don't use this */
    1.53 +  int dummy17;           /**< Don't use this */
    1.54 +} DBusSignatureIter;
    1.55 +
    1.56 +#ifdef __SYMBIAN32__
    1.57 +IMPORT_C
    1.58 +#endif
    1.59 +void            dbus_signature_iter_init             (DBusSignatureIter       *iter,
    1.60 +						      const char              *signature);
    1.61 +
    1.62 +#ifdef __SYMBIAN32__
    1.63 +IMPORT_C
    1.64 +#endif
    1.65 +int             dbus_signature_iter_get_current_type (const DBusSignatureIter *iter);
    1.66 +
    1.67 +#ifdef __SYMBIAN32__
    1.68 +IMPORT_C
    1.69 +#endif
    1.70 +char *          dbus_signature_iter_get_signature    (const DBusSignatureIter *iter);
    1.71 +
    1.72 +#ifdef __SYMBIAN32__
    1.73 +IMPORT_C
    1.74 +#endif
    1.75 +int             dbus_signature_iter_get_element_type (const DBusSignatureIter *iter);
    1.76 +
    1.77 +#ifdef __SYMBIAN32__
    1.78 +IMPORT_C
    1.79 +#endif
    1.80 +dbus_bool_t     dbus_signature_iter_next             (DBusSignatureIter       *iter);
    1.81 +
    1.82 +#ifdef __SYMBIAN32__
    1.83 +IMPORT_C
    1.84 +#endif
    1.85 +void            dbus_signature_iter_recurse          (const DBusSignatureIter *iter,
    1.86 +						      DBusSignatureIter       *subiter);
    1.87 +
    1.88 +#ifdef __SYMBIAN32__
    1.89 +IMPORT_C
    1.90 +#endif
    1.91 +dbus_bool_t     dbus_signature_validate              (const char       *signature,
    1.92 +						      DBusError        *error);
    1.93 +
    1.94 +#ifdef __SYMBIAN32__
    1.95 +IMPORT_C
    1.96 +#endif
    1.97 +dbus_bool_t     dbus_signature_validate_single       (const char       *signature,
    1.98 +						      DBusError        *error);
    1.99 +
   1.100 +#ifdef __SYMBIAN32__
   1.101 +IMPORT_C
   1.102 +#endif
   1.103 +dbus_bool_t     dbus_type_is_basic                   (int            typecode);
   1.104 +#ifdef __SYMBIAN32__
   1.105 +IMPORT_C
   1.106 +#endif
   1.107 +dbus_bool_t     dbus_type_is_container               (int            typecode);
   1.108 +#ifdef __SYMBIAN32__
   1.109 +IMPORT_C
   1.110 +#endif
   1.111 +dbus_bool_t     dbus_type_is_fixed                   (int            typecode);
   1.112 +
   1.113 +/** @} */
   1.114 +
   1.115 +DBUS_END_DECLS
   1.116 +
   1.117 +#endif /* DBUS_SIGNATURE_H */