1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 /************************************************************************* 25 * 26 * ATTENTION 27 * This file is intended to supply the types and defines for Environment independent 28 * building of the packethandler 29 * Only adaption of this file should be necessary. Else it is a bug! 30 * Ether including apropriate files or defining the types when not available in the environment 31 * 32 ************************************************************************/ 33 34 /** defines al least types 35 comm_BYTE 36 comm_WORD; 37 comm_DWORD; 38 comm_BOOL 39 comm_ULONG 40 comm_USHORT 41 comm_UINT16 42 comm_UINT32 43 comm_UniChar 44 **/ 45 46 #ifndef _COMMTYPES_HXX 47 #define _COMMTYPES_HXX 48 49 #include <sal/types.h> 50 typedef sal_Unicode comm_UniChar; 51 #include "rtl/string.hxx" 52 53 //#define DBG_ASSERT( cond, text ) 54 //#define DBG_ERROR( text ) 55 #include <tools/debug.hxx> 56 57 #include <tools/solar.h> 58 typedef sal_uInt8 comm_BYTE; 59 typedef sal_Bool comm_BOOL; 60 typedef sal_uInt32 comm_ULONG; 61 typedef sal_uInt16 comm_USHORT; 62 typedef sal_uInt16 comm_UINT16; 63 typedef sal_uInt32 comm_UINT32; 64 65 typedef sal_uInt16 comm_WORD; 66 typedef sal_uInt32 comm_DWORD; 67 68 namespace rtl { class OString; } 69 class String; 70 #define comm_String String 71 72 #endif 73