dcopglobal.h
00001 /* 00002 Copyright (c) 1999 Preston Brown <pbrown@kde.org> 00003 Copyright (c) 1999 Matthias Ettrich <ettrich@kde.org> 00004 00005 Permission is hereby granted, free of charge, to any person obtaining a copy 00006 of this software and associated documentation files (the "Software"), to deal 00007 in the Software without restriction, including without limitation the rights 00008 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00009 copies of the Software, and to permit persons to whom the Software is 00010 furnished to do so, subject to the following conditions: 00011 00012 The above copyright notice and this permission notice shall be included in 00013 all copies or substantial portions of the Software. 00014 00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00018 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00019 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00020 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00021 */ 00022 00023 #ifndef DCOPGLOBAL_H 00024 #define DCOPGLOBAL_H "$Id: dcopglobal.h 423060 2005-06-07 10:49:14Z staniek $" 00025 00026 00027 #define DCOPVendorString "KDE" 00028 #define DCOPReleaseString "2.0" 00029 #define DCOPVersionMajor 2 00030 #define DCOPVersionMinor 0 00031 00032 #define DCOPSend 1 00033 #define DCOPCall 2 00034 #define DCOPReply 3 00035 #define DCOPReplyFailed 4 00036 #define DCOPReplyWait 5 00037 #define DCOPReplyDelayed 6 00038 #define DCOPFind 7 00039 00040 #define INT32 QINT32 00041 #ifdef Q_WS_X11 00042 #include <X11/Xlib.h> 00043 #include <X11/Xmd.h> 00044 #endif 00045 #include <KDE-ICE/ICElib.h> 00046 00047 #ifdef __cplusplus 00048 extern "C" { 00049 #endif 00050 00051 #include <KDE-ICE/ICEutil.h> 00052 #include <KDE-ICE/ICEmsg.h> 00053 #include <KDE-ICE/ICEproto.h> 00054 00055 #ifdef __cplusplus 00056 } 00057 #endif 00058 00059 #ifdef __cplusplus 00060 extern "C" { 00061 #endif 00062 extern IcePoAuthStatus _kde_IcePoMagicCookie1Proc (IceConn, void **, int, int, int, void *, int *, void **, char **); 00063 extern IcePaAuthStatus _kde_IcePaMagicCookie1Proc (IceConn, void **, int, int, void *, int *, void **, char **); 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 /* these 4 below are static, otherwise build with --disable-shared will fail */ 00068 static IcePoAuthProc DCOPClientAuthProcs[] = {_kde_IcePoMagicCookie1Proc}; 00069 static IcePaAuthProc DCOPServerAuthProcs[] = {_kde_IcePaMagicCookie1Proc}; 00070 static int DCOPAuthCount = 1; 00071 static const char *DCOPAuthNames[] = {"MIT-MAGIC-COOKIE-1"}; 00072 00076 struct DCOPMsg { 00077 CARD8 majorOpcode; 00078 CARD8 minorOpcode; 00079 CARD8 data[2]; 00080 CARD32 length B32; 00081 CARD32 key; 00082 }; 00083 00084 #endif