D-Bus
1.6.8
Main Page
Related Pages
Modules
Data Structures
Files
File List
dbus
dbus-message-private.h
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
/* dbus-message-private.h header shared between dbus-message.c and dbus-message-util.c
3
*
4
* Copyright (C) 2005 Red Hat Inc.
5
*
6
* Licensed under the Academic Free License version 2.1
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*
22
*/
23
#ifndef DBUS_MESSAGE_PRIVATE_H
24
#define DBUS_MESSAGE_PRIVATE_H
25
26
#include <dbus/dbus-message.h>
27
#include <dbus/dbus-message-internal.h>
28
#include <dbus/dbus-string.h>
29
#include <dbus/dbus-dataslot.h>
30
#include <dbus/dbus-marshal-header.h>
31
32
DBUS_BEGIN_DECLS
33
60
struct
DBusMessageLoader
61
{
62
int
refcount
;
64
DBusString
data
;
66
DBusList
*
messages
;
68
long
max_message_size
;
69
long
max_message_unix_fds
;
71
DBusValidity
corruption_reason
;
73
unsigned
int
corrupted
: 1;
75
unsigned
int
buffer_outstanding
: 1;
77
#ifdef HAVE_UNIX_FD_PASSING
78
unsigned
int
unix_fds_outstanding : 1;
80
int
*unix_fds;
81
unsigned
n_unix_fds_allocated;
82
unsigned
n_unix_fds;
83
#endif
84
};
85
86
88
#define CHANGED_STAMP_BITS 21
89
97
struct
DBusMessage
98
{
99
DBusAtomic
refcount
;
101
DBusHeader
header
;
103
DBusString
body
;
105
unsigned
int
locked
: 1;
107
#ifndef DBUS_DISABLE_CHECKS
108
unsigned
int
in_cache
: 1;
109
#endif
110
111
DBusList
*
counters
;
112
long
size_counter_delta
;
114
dbus_uint32_t
changed_stamp
:
CHANGED_STAMP_BITS
;
116
DBusDataSlotList
slot_list
;
118
#ifndef DBUS_DISABLE_CHECKS
119
int
generation
;
120
#endif
121
122
#ifdef HAVE_UNIX_FD_PASSING
123
int
*unix_fds;
127
unsigned
n_unix_fds;
128
unsigned
n_unix_fds_allocated;
130
long
unix_fd_counter_delta;
131
#endif
132
};
133
134
dbus_bool_t
_dbus_message_iter_get_args_valist
(
DBusMessageIter
*iter,
135
DBusError
*error,
136
int
first_arg_type,
137
va_list var_args);
138
141
DBUS_END_DECLS
142
143
#endif
/* DBUS_MESSAGE_H */
Generated on Mon Jun 30 2014 14:32:56 for D-Bus by
1.8.1.2