dbus-message-private.h
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* dbus-message-private.h header shared between dbus-message.c and dbus-message-util.c
*
* Copyright (C) 2005 Red Hat Inc.
*
* Licensed under the Academic Free License version 2.1
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef DBUS_MESSAGE_PRIVATE_H
#define DBUS_MESSAGE_PRIVATE_H
#include <dbus/dbus-message.h>
#include <dbus/dbus-message-internal.h>
#include <dbus/dbus-string.h>
#include <dbus/dbus-dataslot.h>
#include <dbus/dbus-marshal-header.h>
DBUS_BEGIN_DECLS
struct DBusMessageLoader
{
int refcount;
DBusString data;
DBusList *messages;
long max_message_size;
long max_message_unix_fds;
DBusValidity corruption_reason;
unsigned int corrupted : 1;
unsigned int buffer_outstanding : 1;
#ifdef HAVE_UNIX_FD_PASSING
unsigned int unix_fds_outstanding : 1;
int *unix_fds;
unsigned n_unix_fds_allocated;
unsigned n_unix_fds;
#endif
};
#define CHANGED_STAMP_BITS 21
struct DBusMessage
{
DBusAtomic refcount;
DBusHeader header;
DBusString body;
unsigned int locked : 1;
#ifndef DBUS_DISABLE_CHECKS
unsigned int in_cache : 1;
#endif
DBusList *counters;
long size_counter_delta;
dbus_uint32_t changed_stamp : CHANGED_STAMP_BITS;
DBusDataSlotList slot_list;
#ifndef DBUS_DISABLE_CHECKS
int generation;
#endif
#ifdef HAVE_UNIX_FD_PASSING
int *unix_fds;
unsigned n_unix_fds;
unsigned n_unix_fds_allocated;
long unix_fd_counter_delta;
#endif
};
dbus_bool_t _dbus_message_iter_get_args_valist (DBusMessageIter *iter,
DBusError *error,
int first_arg_type,
va_list var_args);
DBUS_END_DECLS
#endif /* DBUS_MESSAGE_H */