<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>dbus-protocol.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.15 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>dbus-protocol.h</h1><div class="fragment"><pre>00001 <font class="comment">/* -*- mode: C; c-file-style: "gnu" -*- */</font> 00002 <font class="comment">/* dbus-protocol.h D-Bus protocol constants</font> 00003 <font class="comment"> *</font> 00004 <font class="comment"> * Copyright (C) 2002, 2003 CodeFactory AB</font> 00005 <font class="comment"> *</font> 00006 <font class="comment"> * Licensed under the Academic Free License version 2.0</font> 00007 <font class="comment"> * </font> 00008 <font class="comment"> * This program is free software; you can redistribute it and/or modify</font> 00009 <font class="comment"> * it under the terms of the GNU General Public License as published by</font> 00010 <font class="comment"> * the Free Software Foundation; either version 2 of the License, or</font> 00011 <font class="comment"> * (at your option) any later version.</font> 00012 <font class="comment"> *</font> 00013 <font class="comment"> * This program is distributed in the hope that it will be useful,</font> 00014 <font class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</font> 00015 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</font> 00016 <font class="comment"> * GNU General Public License for more details.</font> 00017 <font class="comment"> * </font> 00018 <font class="comment"> * You should have received a copy of the GNU General Public License</font> 00019 <font class="comment"> * along with this program; if not, write to the Free Software</font> 00020 <font class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</font> 00021 <font class="comment"> *</font> 00022 <font class="comment"> */</font> 00023 00024 <font class="preprocessor">#ifndef DBUS_PROTOCOL_H</font> 00025 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_PROTOCOL_H</font> 00026 <font class="preprocessor"></font> 00027 <font class="comment">/* Don't include anything in here from anywhere else. It's</font> 00028 <font class="comment"> * intended for use by any random library.</font> 00029 <font class="comment"> */</font> 00030 00031 <font class="preprocessor">#ifdef __cplusplus</font> 00032 <font class="preprocessor"></font><font class="keyword">extern</font> <font class="stringliteral">"C"</font> { 00033 <font class="preprocessor">#endif</font> 00034 <font class="preprocessor"></font> 00035 <font class="comment">/* Message byte order */</font> 00036 <font class="preprocessor">#define DBUS_LITTLE_ENDIAN ('l') </font><font class="comment">/* LSB first */</font> 00037 <font class="preprocessor">#define DBUS_BIG_ENDIAN ('B') </font><font class="comment">/* MSB first */</font> 00038 00039 <font class="comment">/* Protocol version */</font> 00040 <font class="preprocessor">#define DBUS_MAJOR_PROTOCOL_VERSION 0</font> 00041 <font class="preprocessor"></font> 00042 <font class="comment">/* Data types */</font> 00043 <font class="preprocessor">#define DBUS_TYPE_INVALID ((int) '\0')</font> 00044 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_NIL ((int) 'v')</font> 00045 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_BYTE ((int) 'y')</font> 00046 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_BOOLEAN ((int) 'b')</font> 00047 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_INT32 ((int) 'i')</font> 00048 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_UINT32 ((int) 'u')</font> 00049 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_INT64 ((int) 'x')</font> 00050 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_UINT64 ((int) 't')</font> 00051 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_DOUBLE ((int) 'd')</font> 00052 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_STRING ((int) 's')</font> 00053 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_CUSTOM ((int) 'c')</font> 00054 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_ARRAY ((int) 'a')</font> 00055 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_DICT ((int) 'm')</font> 00056 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_OBJECT_PATH ((int) 'o')</font> 00057 <font class="preprocessor"></font> 00058 <font class="preprocessor">#define DBUS_NUMBER_OF_TYPES (13)</font> 00059 <font class="preprocessor"></font> 00060 <font class="comment">/* Max length in bytes of a service or interface or member name */</font> 00061 <font class="preprocessor">#define DBUS_MAXIMUM_NAME_LENGTH 256</font> 00062 <font class="preprocessor"></font> 00063 <font class="comment">/* Max length of a match rule string */</font> 00064 <font class="preprocessor">#define DBUS_MAXIMUM_MATCH_RULE_LENGTH 1024</font> 00065 <font class="preprocessor"></font> 00066 <font class="comment">/* Types of message */</font> 00067 <font class="preprocessor">#define DBUS_MESSAGE_TYPE_INVALID 0</font> 00068 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_MESSAGE_TYPE_METHOD_CALL 1</font> 00069 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_MESSAGE_TYPE_METHOD_RETURN 2</font> 00070 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_MESSAGE_TYPE_ERROR 3</font> 00071 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_MESSAGE_TYPE_SIGNAL 4</font> 00072 <font class="preprocessor"></font> 00073 <font class="comment">/* Header flags */</font> 00074 <font class="preprocessor">#define DBUS_HEADER_FLAG_NO_REPLY_EXPECTED 0x1</font> 00075 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FLAG_AUTO_ACTIVATION 0x2</font> 00076 <font class="preprocessor"></font> 00077 <font class="comment">/* Header fields */</font> 00078 <font class="preprocessor">#define DBUS_HEADER_FIELD_INVALID 0</font> 00079 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FIELD_PATH 1</font> 00080 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FIELD_INTERFACE 2</font> 00081 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FIELD_MEMBER 3</font> 00082 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FIELD_ERROR_NAME 4</font> 00083 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FIELD_REPLY_SERIAL 5</font> 00084 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FIELD_DESTINATION 6</font> 00085 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FIELD_SENDER 7</font> 00086 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_HEADER_FIELD_SIGNATURE 8</font> 00087 <font class="preprocessor"></font> 00088 <font class="preprocessor">#define DBUS_HEADER_FIELD_LAST DBUS_HEADER_FIELD_SIGNATURE</font> 00089 <font class="preprocessor"></font> 00090 <font class="comment">/* Services */</font> 00091 <font class="preprocessor">#define DBUS_SERVICE_ORG_FREEDESKTOP_DBUS "org.freedesktop.DBus"</font> 00092 <font class="preprocessor"></font> 00093 <font class="comment">/* Paths */</font> 00094 <font class="preprocessor">#define DBUS_PATH_ORG_FREEDESKTOP_DBUS "/org/freedesktop/DBus"</font> 00095 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_PATH_ORG_FREEDESKTOP_LOCAL "/org/freedesktop/Local"</font> 00096 <font class="preprocessor"></font> 00097 <font class="comment">/* Interfaces, these #define don't do much other than</font> 00098 <font class="comment"> * catch typos at compile time</font> 00099 <font class="comment"> */</font> 00100 <font class="preprocessor">#define DBUS_INTERFACE_ORG_FREEDESKTOP_DBUS "org.freedesktop.DBus"</font> 00101 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_INTERFACE_ORG_FREEDESKTOP_INTROSPECTABLE "org.freedesktop.Introspectable"</font> 00102 <font class="preprocessor"></font> 00103 <font class="comment">/* This is a special interface whose methods can only be invoked</font> 00104 <font class="comment"> * by the local implementation (messages from remote apps aren't</font> 00105 <font class="comment"> * allowed to specify this interface).</font> 00106 <font class="comment"> */</font> 00107 <font class="preprocessor">#define DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL "org.freedesktop.Local"</font> 00108 <font class="preprocessor"></font> 00109 <font class="comment">/* Service owner flags */</font> 00110 <font class="preprocessor">#define DBUS_SERVICE_FLAG_PROHIBIT_REPLACEMENT 0x1</font> 00111 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_SERVICE_FLAG_REPLACE_EXISTING 0x2</font> 00112 <font class="preprocessor"></font> 00113 <font class="comment">/* Service replies */</font> 00114 <font class="preprocessor">#define DBUS_SERVICE_REPLY_PRIMARY_OWNER 0x1</font> 00115 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_SERVICE_REPLY_IN_QUEUE 0x2</font> 00116 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_SERVICE_REPLY_SERVICE_EXISTS 0x4</font> 00117 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_SERVICE_REPLY_ALREADY_OWNER 0x8</font> 00118 <font class="preprocessor"></font> 00119 <font class="comment">/* Activation replies */</font> 00120 <font class="preprocessor">#define DBUS_ACTIVATION_REPLY_ACTIVATED 0x0</font> 00121 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_ACTIVATION_REPLY_ALREADY_ACTIVE 0x1</font> 00122 <font class="preprocessor"></font> 00123 <font class="preprocessor">#ifdef __cplusplus</font> 00124 <font class="preprocessor"></font>} 00125 <font class="preprocessor">#endif</font> 00126 <font class="preprocessor"></font> 00127 <font class="preprocessor">#endif </font><font class="comment">/* DBUS_PROTOCOL_H */</font> </pre></div><hr><address align="right"><small>Generated on Wed Jun 9 05:01:26 2004 for D-BUS by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address> </body> </html>