os/ossrv/ossrv_pub/dbus/inc/dbus-signature.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/* -*- mode: C; c-file-style: "gnu" -*- */
sl@0
     2
/* dbus-signatures.h utility functions for D-Bus types
sl@0
     3
 *
sl@0
     4
 * Copyright (C) 2005 Red Hat Inc.
sl@0
     5
 * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
sl@0
     6
 * Licensed under the Academic Free License version 2.1
sl@0
     7
 * 
sl@0
     8
 * This program is free software; you can redistribute it and/or modify
sl@0
     9
 * it under the terms of the GNU General Public License as published by
sl@0
    10
 * the Free Software Foundation; either version 2 of the License, or
sl@0
    11
 * (at your option) any later version.
sl@0
    12
 *
sl@0
    13
 * This program is distributed in the hope that it will be useful,
sl@0
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
sl@0
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
sl@0
    16
 * GNU General Public License for more details.
sl@0
    17
 * 
sl@0
    18
 * You should have received a copy of the GNU General Public License
sl@0
    19
 * along with this program; if not, write to the Free Software
sl@0
    20
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
sl@0
    21
 *
sl@0
    22
 */
sl@0
    23
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
sl@0
    24
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
sl@0
    25
#endif
sl@0
    26
sl@0
    27
#ifndef DBUS_SIGNATURES_H
sl@0
    28
#define DBUS_SIGNATURES_H
sl@0
    29
sl@0
    30
#include <dbus/dbus-macros.h>
sl@0
    31
#include <dbus/dbus-types.h>
sl@0
    32
#include <dbus/dbus-errors.h>
sl@0
    33
sl@0
    34
DBUS_BEGIN_DECLS
sl@0
    35
sl@0
    36
/**
sl@0
    37
 * @addtogroup DBusSignature
sl@0
    38
 * @{
sl@0
    39
 */
sl@0
    40
sl@0
    41
/**
sl@0
    42
 * DBusSignatureIter struct; contains no public fields 
sl@0
    43
 */
sl@0
    44
typedef struct
sl@0
    45
{ 
sl@0
    46
  void *dummy1;         /**< Don't use this */
sl@0
    47
  void *dummy2;         /**< Don't use this */
sl@0
    48
  dbus_uint32_t dummy8; /**< Don't use this */
sl@0
    49
  int dummy12;           /**< Don't use this */
sl@0
    50
  int dummy17;           /**< Don't use this */
sl@0
    51
} DBusSignatureIter;
sl@0
    52
sl@0
    53
#ifdef __SYMBIAN32__
sl@0
    54
IMPORT_C
sl@0
    55
#endif
sl@0
    56
void            dbus_signature_iter_init             (DBusSignatureIter       *iter,
sl@0
    57
						      const char              *signature);
sl@0
    58
sl@0
    59
#ifdef __SYMBIAN32__
sl@0
    60
IMPORT_C
sl@0
    61
#endif
sl@0
    62
int             dbus_signature_iter_get_current_type (const DBusSignatureIter *iter);
sl@0
    63
sl@0
    64
#ifdef __SYMBIAN32__
sl@0
    65
IMPORT_C
sl@0
    66
#endif
sl@0
    67
char *          dbus_signature_iter_get_signature    (const DBusSignatureIter *iter);
sl@0
    68
sl@0
    69
#ifdef __SYMBIAN32__
sl@0
    70
IMPORT_C
sl@0
    71
#endif
sl@0
    72
int             dbus_signature_iter_get_element_type (const DBusSignatureIter *iter);
sl@0
    73
sl@0
    74
#ifdef __SYMBIAN32__
sl@0
    75
IMPORT_C
sl@0
    76
#endif
sl@0
    77
dbus_bool_t     dbus_signature_iter_next             (DBusSignatureIter       *iter);
sl@0
    78
sl@0
    79
#ifdef __SYMBIAN32__
sl@0
    80
IMPORT_C
sl@0
    81
#endif
sl@0
    82
void            dbus_signature_iter_recurse          (const DBusSignatureIter *iter,
sl@0
    83
						      DBusSignatureIter       *subiter);
sl@0
    84
sl@0
    85
#ifdef __SYMBIAN32__
sl@0
    86
IMPORT_C
sl@0
    87
#endif
sl@0
    88
dbus_bool_t     dbus_signature_validate              (const char       *signature,
sl@0
    89
						      DBusError        *error);
sl@0
    90
sl@0
    91
#ifdef __SYMBIAN32__
sl@0
    92
IMPORT_C
sl@0
    93
#endif
sl@0
    94
dbus_bool_t     dbus_signature_validate_single       (const char       *signature,
sl@0
    95
						      DBusError        *error);
sl@0
    96
sl@0
    97
#ifdef __SYMBIAN32__
sl@0
    98
IMPORT_C
sl@0
    99
#endif
sl@0
   100
dbus_bool_t     dbus_type_is_basic                   (int            typecode);
sl@0
   101
#ifdef __SYMBIAN32__
sl@0
   102
IMPORT_C
sl@0
   103
#endif
sl@0
   104
dbus_bool_t     dbus_type_is_container               (int            typecode);
sl@0
   105
#ifdef __SYMBIAN32__
sl@0
   106
IMPORT_C
sl@0
   107
#endif
sl@0
   108
dbus_bool_t     dbus_type_is_fixed                   (int            typecode);
sl@0
   109
sl@0
   110
/** @} */
sl@0
   111
sl@0
   112
DBUS_END_DECLS
sl@0
   113
sl@0
   114
#endif /* DBUS_SIGNATURE_H */