~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/tao/TAO.pidl

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- IDL -*-
2
 
 
3
 
// ================================================================
4
 
/**
5
 
 *  @file TAO.pidl
6
 
 *
7
 
 *  TAO.pidl,v 1.15 2003/11/16 15:48:10 bala Exp
8
 
 *
9
 
 *  This file contains TAO-specific idl interfaces (not part of CORBA
10
 
 *  2.6).
11
 
 *
12
 
 *  The steps to regenerate the code are as follows:
13
 
 *
14
 
 * 1. Run the tao_idl compiler on the pidl file.  The command used for
15
 
 *   this is:
16
 
 *
17
 
 *   tao_idl
18
 
 *       -o orig -Gp -Gd -Ge 1 -GT -GA
19
 
 *       -Wb,export_macro=TAO_Export
20
 
 *       -Wb,pre_include="ace/pre.h"
21
 
 *       -Wb,post_include="ace/post.h"
22
 
 *       TAO.pidl
23
 
 *
24
 
 *   2. Then patch the generated code.  The patch fixes the interface
25
 
 *   repository IDs, disables the code under certain configurations,
26
 
 *   and eliminates cycles in the include dependencies.
27
 
 *
28
 
 *   Apply patches using the following commands:
29
 
 *
30
 
 *   patch < diffs/TAOC.h.diff
31
 
 *   patch < diffs/TAOC.i.diff
32
 
 *   patch < diffs/TAOC.cpp.diff
33
 
 *
34
 
 *   @note The diffs were generated with these commands:
35
 
 *
36
 
 *   * Note: to update the patch file after re-generating the code use:
37
 
 *
38
 
 *   for i in TAO{C,S,S_T}.{h,i,cpp}; do
39
 
 *     diff -uBbw orig/$i $i;
40
 
  *   done > diffs/TAO.diff
41
 
 */
42
 
// ================================================================
43
 
 
44
 
#ifndef TAO_TAO_IDL
45
 
#define TAO_TAO_IDL
46
 
 
47
 
#include "Policy.pidl"
48
 
#include "TimeBase.pidl"
49
 
#include "Messaging_SyncScope.pidl"
50
 
 
51
 
#pragma prefix "tao"
52
 
 
53
 
module TAO
54
 
{
55
 
 
56
 
  //
57
 
  // Buffering constraint.
58
 
  //
59
 
  typedef unsigned short BufferingConstraintMode;
60
 
  const BufferingConstraintMode BUFFER_FLUSH         = 0x00;
61
 
 
62
 
  // Note that timeout, message_count, and message_bytes can be or'd.
63
 
  const BufferingConstraintMode BUFFER_TIMEOUT       = 0x01;
64
 
  const BufferingConstraintMode BUFFER_MESSAGE_COUNT = 0x02;
65
 
  const BufferingConstraintMode BUFFER_MESSAGE_BYTES = 0x04;
66
 
 
67
 
  struct BufferingConstraint
68
 
  {
69
 
    BufferingConstraintMode mode;
70
 
    TimeBase::TimeT timeout;
71
 
    unsigned long message_count;
72
 
    unsigned long message_bytes;
73
 
  };
74
 
 
75
 
  const CORBA::PolicyType BUFFERING_CONSTRAINT_POLICY_TYPE = 0x54410001;
76
 
 
77
 
  local interface BufferingConstraintPolicy : CORBA::Policy
78
 
    {
79
 
      readonly attribute BufferingConstraint buffering_constraint;
80
 
    };
81
 
 
82
 
  // = TAO specific.
83
 
  const Messaging::SyncScope SYNC_EAGER_BUFFERING   = Messaging::SYNC_NONE;
84
 
  const Messaging::SyncScope SYNC_DELAYED_BUFFERING = -2;
85
 
 
86
 
};
87
 
 
88
 
#pragma prefix ""
89
 
 
90
 
#endif /* TAO_TAO_IDL */