epoc32/include/stdapis/dbus-1.0/dbus/dbus-errors.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-errors.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,103 @@
     1.4 +/* -*- mode: C; c-file-style: "gnu" -*- */
     1.5 +/* dbus-errors.h Error reporting
     1.6 + *
     1.7 + * Copyright (C) 2002  Red Hat Inc.
     1.8 + * Copyright (C) 2003  CodeFactory AB
     1.9 + * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
    1.10 + * Licensed under the Academic Free License version 2.1
    1.11 + * 
    1.12 + * This program is free software; you can redistribute it and/or modify
    1.13 + * it under the terms of the GNU General Public License as published by
    1.14 + * the Free Software Foundation; either version 2 of the License, or
    1.15 + * (at your option) any later version.
    1.16 + *
    1.17 + * This program is distributed in the hope that it will be useful,
    1.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.20 + * GNU General Public License for more details.
    1.21 + * 
    1.22 + * You should have received a copy of the GNU General Public License
    1.23 + * along with this program; if not, write to the Free Software
    1.24 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.25 + *
    1.26 + */
    1.27 +#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
    1.28 +#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
    1.29 +#endif
    1.30 +
    1.31 +#ifndef DBUS_ERROR_H
    1.32 +#define DBUS_ERROR_H
    1.33 +
    1.34 +#include <dbus/dbus-macros.h>
    1.35 +#include <dbus/dbus-types.h>
    1.36 +
    1.37 +DBUS_BEGIN_DECLS
    1.38 +
    1.39 +/**
    1.40 + * @addtogroup DBusErrors
    1.41 + * @{
    1.42 + */
    1.43 +
    1.44 +/** Mostly-opaque type representing an error that occurred */
    1.45 +typedef struct DBusError DBusError;
    1.46 +
    1.47 +/**
    1.48 + * Object representing an exception.
    1.49 + */
    1.50 +struct DBusError
    1.51 +{
    1.52 +  const char *name;    /**< public error name field */
    1.53 +  const char *message; /**< public error message field */
    1.54 +
    1.55 +  unsigned int dummy1 : 1; /**< placeholder */
    1.56 +  unsigned int dummy2 : 1; /**< placeholder */
    1.57 +  unsigned int dummy3 : 1; /**< placeholder */
    1.58 +  unsigned int dummy4 : 1; /**< placeholder */
    1.59 +  unsigned int dummy5 : 1; /**< placeholder */
    1.60 +
    1.61 +  void *padding1; /**< placeholder */
    1.62 +};
    1.63 +
    1.64 +#ifdef __SYMBIAN32__
    1.65 +IMPORT_C
    1.66 +#endif
    1.67 +void        dbus_error_init      (DBusError       *error);
    1.68 +
    1.69 +#ifdef __SYMBIAN32__
    1.70 +IMPORT_C
    1.71 +#endif
    1.72 +void        dbus_error_free      (DBusError       *error);
    1.73 +
    1.74 +#ifdef __SYMBIAN32__
    1.75 +IMPORT_C
    1.76 +#endif
    1.77 +void        dbus_set_error       (DBusError       *error,
    1.78 +                                  const char      *name,
    1.79 +                                  const char      *message,
    1.80 +                                  ...);
    1.81 +#ifdef __SYMBIAN32__
    1.82 +IMPORT_C
    1.83 +#endif
    1.84 +void        dbus_set_error_const (DBusError       *error,
    1.85 +                                  const char      *name,
    1.86 +                                  const char      *message);
    1.87 +#ifdef __SYMBIAN32__
    1.88 +IMPORT_C
    1.89 +#endif
    1.90 +void        dbus_move_error      (DBusError       *src,
    1.91 +                                  DBusError       *dest);
    1.92 +#ifdef __SYMBIAN32__
    1.93 +IMPORT_C
    1.94 +#endif
    1.95 +dbus_bool_t dbus_error_has_name  (const DBusError *error,
    1.96 +                                  const char      *name);
    1.97 +#ifdef __SYMBIAN32__
    1.98 +IMPORT_C
    1.99 +#endif
   1.100 +dbus_bool_t dbus_error_is_set    (const DBusError *error);
   1.101 +
   1.102 +/** @} */
   1.103 +
   1.104 +DBUS_END_DECLS
   1.105 +
   1.106 +#endif /* DBUS_ERROR_H */