/usr/share/idl/omniORB/compression.idl is in omniorb-idl 4.2.2-0.8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | // compression.idl
//
// Compression definitions for ZIOP. From the ZIOP 1.0 specification.
//
// http://www.omg.org/spec/ZIOP/
#ifndef _omniorb_compression_idl_
#define _omniorb_compression_idl_
#include <corbaidl.idl>
#pragma prefix "omg.org"
module Compression {
exception CompressionException {
long reason;
string description;
};
exception FactoryAlreadyRegistered { };
exception UnknownCompressorId { };
typedef unsigned short CompressorId;
const CompressorId COMPRESSORID_NONE = 0;
const CompressorId COMPRESSORID_GZIP = 1;
const CompressorId COMPRESSORID_PKZIP = 2;
const CompressorId COMPRESSORID_BZIP2 = 3;
const CompressorId COMPRESSORID_ZLIB = 4;
const CompressorId COMPRESSORID_LZMA = 5;
const CompressorId COMPRESSORID_LZO = 6;
const CompressorId COMPRESSORID_RZIP = 7;
const CompressorId COMPRESSORID_7X = 8;
const CompressorId COMPRESSORID_XAR = 9;
typedef unsigned short CompressionLevel;
typedef float CompressionRatio;
struct CompressorIdLevel {
CompressorId compressor_id;
CompressionLevel compression_level;
};
typedef sequence <CompressorIdLevel> CompressorIdLevelList;
typedef CORBA::OctetSeq Buffer;
local interface CompressorFactory;
local interface Compressor {
void compress(in Buffer source,
inout Buffer target)
raises (CompressionException);
void decompress(in Buffer source,
inout Buffer target)
raises (CompressionException);
readonly attribute CompressorFactory compressor_factory;
readonly attribute CompressionLevel compression_level;
readonly attribute unsigned long long compressed_bytes;
readonly attribute unsigned long long uncompressed_bytes;
readonly attribute CompressionRatio compression_ratio;
};
typedef sequence<Compressor> CompressorSeq; // omniORB extension
local interface CompressorFactory {
readonly attribute CompressorId compressor_id;
Compressor get_compressor(in CompressionLevel compression_level);
};
typedef sequence<CompressorFactory> CompressorFactorySeq;
local interface CompressionManager {
void register_factory(in CompressorFactory compressor_factory)
raises (FactoryAlreadyRegistered);
void unregister_factory(in CompressorId compressor_id)
raises (UnknownCompressorId);
CompressorFactory get_factory(in CompressorId compressor_id)
raises (UnknownCompressorId);
Compressor get_compressor(in CompressorId compressor_id,
in CompressionLevel compression_level)
raises (UnknownCompressorId);
CompressorFactorySeq get_factories();
};
};
#endif // _omniorb_compression_idl_
|