/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ //File: TimeBase.idl //Part of the Time Service // Note: if your IDL compiler does not yet support the // "long long" data type, compile this module with the // preprocessor definition "NOLONGLONG". With many // compilers this would be done with a qualifier on // the command line, something like -DNOLONGLONG #ifndef _TIME_BASE_IDL_ #define _TIME_BASE_IDL_ #pragma prefix "omg.org" module TimeBase { #ifdef NOLONGLONG struct ulonglong{ unsigned long low; unsigned long high; }; typedef ulonglong TimeT; #else typedef unsigned long long TimeT; #endif typedef TimeT InaccuracyT; typedef short TdfT; struct UtcT { TimeT time; // 8 octets unsigned long inacclo; // 4 octets unsigned short inacchi; // 2 octets TdfT tdf; // 2 octets // total 16 octets. }; struct IntervalT { TimeT lower_bound; TimeT upper_bound; }; }; #endif /* ifndef _TIME_BASE_IDL_ */