dbus-protocol.h
上传用户:detong
上传日期:2022-06-22
资源大小:20675k
文件大小:21k
- /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
- /* dbus-protocol.h D-Bus protocol constants
- *
- * Copyright (C) 2002, 2003 CodeFactory AB
- * Copyright (C) 2004, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
- #ifndef DBUS_PROTOCOL_H
- #define DBUS_PROTOCOL_H
- /* Don't include anything in here from anywhere else. It's
- * intended for use by any random library.
- */
- #ifdef __cplusplus
- extern "C" {
- #if 0
- } /* avoids confusing emacs indentation */
- #endif
- #endif
- /* Normally docs are in .c files, but there isn't a .c file for this. */
- /**
- * @defgroup DBusProtocol Protocol constants
- * @ingroup DBus
- *
- * @brief Defines constants which are part of the D-Bus protocol
- *
- * This header is intended for use by any library, not only libdbus.
- *
- * @{
- */
- /* Message byte order */
- #define DBUS_LITTLE_ENDIAN ('l') /**< Code marking LSB-first byte order in the wire protocol. */
- #define DBUS_BIG_ENDIAN ('B') /**< Code marking MSB-first byte order in the wire protocol. */
- /** Protocol version. */
- #define DBUS_MAJOR_PROTOCOL_VERSION 1
- /** Type code that is never equal to a legitimate type code */
- #define DBUS_TYPE_INVALID ((int) ' ')
- /** #DBUS_TYPE_INVALID as a string literal instead of a int literal */
- #define DBUS_TYPE_INVALID_AS_STRING "