summaryrefslogtreecommitdiff
path: root/TAO/examples/Kokyu_dsrt_schedulers/Kokyu_qos.idl
blob: 63cc8df216d4ea2e68151ce9fff34f53736d9d95 (plain)
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

/**
 * @file Kokyu_qos.idl
 *
 * $Id$
 *
 * @brief Pre-compiled IDL source to help with the service context
 *        propagation of dynamic scheduling parameters using Kokyu
 *
 *   This file was used to generate the code in Kokyu_qosC.{h,i,cpp}.
 *   The steps to regenerate the code are as follows:
 *
 *   1. Run the tao_idl compiler on the pidl file.  The command used for
 *   this is:
 *
 *     tao_idl -I $TAO_ROOT -Ge 1 Kokyu_qos.pidl
 *
 *   2. Then apply the patches in Kokyu_qosC.h.diff to the generated code.
 *   The patch will replace the inclusion of RTCORBAC.h and RTSchedulerC.h
 *   with RTCORBA.h and RTScheduler.h respectively.
 *
 * Apply patches using the following command:
 *
 *   patch < Kokyu_qosC.h.diff
 *
 * Note: The diff was generated in the following way:
 *
 *   Run the idl compiler as in step 1.
 *   cp Kokyu_qosC.h Kokyu_qosC.h.orig
 *   Modify Kokyu_qosC.h with changes described in step 2.
 *   diff -wBbu Kokyu_qosC.h.orig Kokyu_qosC.h > Kokyu_qosC.h.diff
 *
 */

#ifndef _KOKYU_DSRT_QOS_PIDL_
#define _KOKYU_DSRT_QOS_PIDL_

#include <TimeBase.pidl>
#include <tao/RTCORBA/RTCORBA_include.pidl>

#pragma prefix "omg.org"

module Kokyu
{
  typedef sequence<octet> GuidType;

  struct Svc_Ctxt_DSRT_QoS
  {
    GuidType guid;
    long importance;
    long criticality;
    RTCORBA::Priority desired_priority;
    TimeBase::TimeT deadline;
    TimeBase::TimeT estimated_initial_execution_time;
  };
};

#endif /* KOKYU_DSRT_QOS_PIDL */