00001 /* -*- mode: C; c-file-style: "gnu" -*- */ 00002 /* dbus-message-private.h header shared between dbus-message.c and dbus-message-util.c 00003 * 00004 * Copyright (C) 2005 Red Hat Inc. 00005 * 00006 * Licensed under the Academic Free License version 2.1 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 */ 00023 #ifndef DBUS_MESSAGE_PRIVATE_H 00024 #define DBUS_MESSAGE_PRIVATE_H 00025 00026 #include <dbus/dbus-message.h> 00027 #include <dbus/dbus-message-internal.h> 00028 #include <dbus/dbus-string.h> 00029 #include <dbus/dbus-dataslot.h> 00030 #include <dbus/dbus-marshal-header.h> 00031 00032 DBUS_BEGIN_DECLS 00033 00060 struct DBusMessageLoader 00061 { 00062 int refcount; 00064 DBusString data; 00066 DBusList *messages; 00068 long max_message_size; 00070 unsigned int buffer_outstanding : 1; 00072 unsigned int corrupted : 1; 00074 DBusValidity corruption_reason; 00075 }; 00076 00077 00079 #define CHANGED_STAMP_BITS 21 00080 00088 struct DBusMessage 00089 { 00090 DBusAtomic refcount; 00092 DBusHeader header; 00094 DBusString body; 00096 char byte_order; 00098 unsigned int locked : 1; 00100 #ifndef DBUS_DISABLE_CHECKS 00101 unsigned int in_cache : 1; 00102 #endif 00103 00104 DBusList *size_counters; 00105 long size_counter_delta; 00107 dbus_uint32_t changed_stamp : CHANGED_STAMP_BITS; 00109 DBusDataSlotList slot_list; 00111 #ifndef DBUS_DISABLE_CHECKS 00112 int generation; 00113 #endif 00114 }; 00115 00116 dbus_bool_t _dbus_message_iter_get_args_valist (DBusMessageIter *iter, 00117 DBusError *error, 00118 int first_arg_type, 00119 va_list var_args); 00120 00123 DBUS_END_DECLS 00124 00125 #endif /* DBUS_MESSAGE_H */