text: /*
   * Copyright 2016 Real Logic Ltd.
   *
   * Licensed 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.
   */
  #ifndef AERON_STREAMPOSITIONCOUNTER_H
  #define AERON_STREAMPOSITIONCOUNTER_H
  
  #include <cstdint>
  
  namespace aeron { namespace driver { namespace status {
  
  namespace StreamPositionCounter {
  
  static const std::int32_t PUBLISHER_LIMIT_TYPE_ID = 1;
  static const std::int32_t SENDER_POSITION_TYPE_ID = 2;
  static const std::int32_t RECEIVER_HWM_TYPE_ID = 3;
  static const std::int32_t SUBSCRIBER_POSITION_TYPE_ID = 4;
  
  #pragma pack(push)
  #pragma pack(4)
  struct StreamPositionCounterKeyMetaDataDefn
  {
      std::int64_t registrationId;
      std::int32_t sessionId;
      std::int32_t streamId;
      struct
      {
          std::int32_t channelLength;
          std::int8_t  channelData[1];
      } channel;
  };
  #pragma pack(pop)
  
  }
  
  }}}
  
  #endif
  