D-Bus
1.12.16
dbus
dbus-types.h
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
/* dbus-types.h types such as dbus_bool_t
3
*
4
* Copyright (C) 2002 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
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
24
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
25
#endif
26
27
#ifndef DBUS_TYPES_H
28
#define DBUS_TYPES_H
29
30
#include <stddef.h>
31
#include <dbus/dbus-arch-deps.h>
32
33
typedef
dbus_uint32_t dbus_unichar_t;
34
/* boolean size must be fixed at 4 bytes due to wire protocol! */
35
typedef
dbus_uint32_t
dbus_bool_t
;
36
37
/* Normally docs are in .c files, but there isn't a .c file for this. */
121
typedef
struct
122
{
123
dbus_uint32_t
first32
;
124
dbus_uint32_t
second32
;
125
}
DBus8ByteStruct
;
126
137
typedef
union
138
{
139
unsigned
char
bytes[8];
140
dbus_int16_t
i16
;
141
dbus_uint16_t
u16
;
142
dbus_int32_t
i32
;
143
dbus_uint32_t
u32
;
144
dbus_bool_t
bool_val
;
145
dbus_int64_t
i64
;
146
dbus_uint64_t
u64
;
147
DBus8ByteStruct
eight
;
148
double
dbl
;
149
unsigned
char
byt
;
150
char
*
str
;
151
int
fd
;
152
}
DBusBasicValue
;
153
156
#endif
/* DBUS_TYPES_H */
DBusBasicValue::bool_val
dbus_bool_t bool_val
as boolean
Definition:
dbus-types.h:144
DBusBasicValue::i32
dbus_int32_t i32
as int32
Definition:
dbus-types.h:142
DBusBasicValue::eight
DBus8ByteStruct eight
as 8-byte struct
Definition:
dbus-types.h:147
DBusBasicValue::u32
dbus_uint32_t u32
as int32
Definition:
dbus-types.h:143
DBus8ByteStruct::second32
dbus_uint32_t second32
second 32 bits in the 8 bytes (beware endian issues)
Definition:
dbus-types.h:124
DBus8ByteStruct
An 8-byte struct you could use to access int64 without having int64 support.
Definition:
dbus-types.h:121
DBusBasicValue::u16
dbus_uint16_t u16
as int16
Definition:
dbus-types.h:141
DBusBasicValue::byt
unsigned char byt
as byte
Definition:
dbus-types.h:149
DBusBasicValue
A simple value union that lets you access bytes as if they were various types; useful when dealing wi...
Definition:
dbus-types.h:137
DBusBasicValue::fd
int fd
as Unix file descriptor
Definition:
dbus-types.h:151
DBusBasicValue::i16
dbus_int16_t i16
as int16
Definition:
dbus-types.h:140
DBus8ByteStruct::first32
dbus_uint32_t first32
first 32 bits in the 8 bytes (beware endian issues)
Definition:
dbus-types.h:123
DBusBasicValue::str
char * str
as char* (string, object path or signature)
Definition:
dbus-types.h:150
DBusBasicValue::dbl
double dbl
as double
Definition:
dbus-types.h:148
dbus_bool_t
dbus_uint32_t dbus_bool_t
Definition:
dbus-types.h:35
DBusBasicValue::u64
dbus_uint64_t u64
as int64
Definition:
dbus-types.h:146
DBusBasicValue::i64
dbus_int64_t i64
as int64
Definition:
dbus-types.h:145
Generated by
1.8.17