// generated from rosidl_typesupport_introspection_c/resource/idl__type_support.c.em
// with input from lane_parameter_msg:msg/LaneMarkingProjectedArrayBoth.idl
// generated code does not contain a copyright notice

#include <stddef.h>
#include "lane_parameter_msg/msg/detail/lane_marking_projected_array_both__rosidl_typesupport_introspection_c.h"
#include "lane_parameter_msg/msg/rosidl_typesupport_introspection_c__visibility_control.h"
#include "rosidl_typesupport_introspection_c/field_types.h"
#include "rosidl_typesupport_introspection_c/identifier.h"
#include "rosidl_typesupport_introspection_c/message_introspection.h"
#include "lane_parameter_msg/msg/detail/lane_marking_projected_array_both__functions.h"
#include "lane_parameter_msg/msg/detail/lane_marking_projected_array_both__struct.h"


// Include directives for member types
// Member `header`
#include "std_msgs/msg/header.h"
// Member `header`
#include "std_msgs/msg/detail/header__rosidl_typesupport_introspection_c.h"
// Member `markings_left`
// Member `markings_right`
#include "lane_parameter_msg/msg/lane_marking_projected.h"
// Member `markings_left`
// Member `markings_right`
#include "lane_parameter_msg/msg/detail/lane_marking_projected__rosidl_typesupport_introspection_c.h"

#ifdef __cplusplus
extern "C"
{
#endif

void LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_init_function(
  void * message_memory, enum rosidl_runtime_c__message_initialization _init)
{
  // TODO(karsten1987): initializers are not yet implemented for typesupport c
  // see https://github.com/ros2/ros2/issues/397
  (void) _init;
  lane_parameter_msg__msg__LaneMarkingProjectedArrayBoth__init(message_memory);
}

void LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_fini_function(void * message_memory)
{
  lane_parameter_msg__msg__LaneMarkingProjectedArrayBoth__fini(message_memory);
}

size_t LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__size_function__LaneMarkingProjected__markings_left(
  const void * untyped_member)
{
  const lane_parameter_msg__msg__LaneMarkingProjected__Sequence * member =
    (const lane_parameter_msg__msg__LaneMarkingProjected__Sequence *)(untyped_member);
  return member->size;
}

const void * LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__get_const_function__LaneMarkingProjected__markings_left(
  const void * untyped_member, size_t index)
{
  const lane_parameter_msg__msg__LaneMarkingProjected__Sequence * member =
    (const lane_parameter_msg__msg__LaneMarkingProjected__Sequence *)(untyped_member);
  return &member->data[index];
}

void * LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__get_function__LaneMarkingProjected__markings_left(
  void * untyped_member, size_t index)
{
  lane_parameter_msg__msg__LaneMarkingProjected__Sequence * member =
    (lane_parameter_msg__msg__LaneMarkingProjected__Sequence *)(untyped_member);
  return &member->data[index];
}

bool LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__resize_function__LaneMarkingProjected__markings_left(
  void * untyped_member, size_t size)
{
  lane_parameter_msg__msg__LaneMarkingProjected__Sequence * member =
    (lane_parameter_msg__msg__LaneMarkingProjected__Sequence *)(untyped_member);
  lane_parameter_msg__msg__LaneMarkingProjected__Sequence__fini(member);
  return lane_parameter_msg__msg__LaneMarkingProjected__Sequence__init(member, size);
}

size_t LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__size_function__LaneMarkingProjected__markings_right(
  const void * untyped_member)
{
  const lane_parameter_msg__msg__LaneMarkingProjected__Sequence * member =
    (const lane_parameter_msg__msg__LaneMarkingProjected__Sequence *)(untyped_member);
  return member->size;
}

const void * LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__get_const_function__LaneMarkingProjected__markings_right(
  const void * untyped_member, size_t index)
{
  const lane_parameter_msg__msg__LaneMarkingProjected__Sequence * member =
    (const lane_parameter_msg__msg__LaneMarkingProjected__Sequence *)(untyped_member);
  return &member->data[index];
}

void * LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__get_function__LaneMarkingProjected__markings_right(
  void * untyped_member, size_t index)
{
  lane_parameter_msg__msg__LaneMarkingProjected__Sequence * member =
    (lane_parameter_msg__msg__LaneMarkingProjected__Sequence *)(untyped_member);
  return &member->data[index];
}

bool LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__resize_function__LaneMarkingProjected__markings_right(
  void * untyped_member, size_t size)
{
  lane_parameter_msg__msg__LaneMarkingProjected__Sequence * member =
    (lane_parameter_msg__msg__LaneMarkingProjected__Sequence *)(untyped_member);
  lane_parameter_msg__msg__LaneMarkingProjected__Sequence__fini(member);
  return lane_parameter_msg__msg__LaneMarkingProjected__Sequence__init(member, size);
}

static rosidl_typesupport_introspection_c__MessageMember LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_member_array[3] = {
  {
    "header",  // name
    rosidl_typesupport_introspection_c__ROS_TYPE_MESSAGE,  // type
    0,  // upper bound of string
    NULL,  // members of sub message (initialized later)
    false,  // is array
    0,  // array size
    false,  // is upper bound
    offsetof(lane_parameter_msg__msg__LaneMarkingProjectedArrayBoth, header),  // bytes offset in struct
    NULL,  // default value
    NULL,  // size() function pointer
    NULL,  // get_const(index) function pointer
    NULL,  // get(index) function pointer
    NULL  // resize(index) function pointer
  },
  {
    "markings_left",  // name
    rosidl_typesupport_introspection_c__ROS_TYPE_MESSAGE,  // type
    0,  // upper bound of string
    NULL,  // members of sub message (initialized later)
    true,  // is array
    0,  // array size
    false,  // is upper bound
    offsetof(lane_parameter_msg__msg__LaneMarkingProjectedArrayBoth, markings_left),  // bytes offset in struct
    NULL,  // default value
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__size_function__LaneMarkingProjected__markings_left,  // size() function pointer
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__get_const_function__LaneMarkingProjected__markings_left,  // get_const(index) function pointer
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__get_function__LaneMarkingProjected__markings_left,  // get(index) function pointer
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__resize_function__LaneMarkingProjected__markings_left  // resize(index) function pointer
  },
  {
    "markings_right",  // name
    rosidl_typesupport_introspection_c__ROS_TYPE_MESSAGE,  // type
    0,  // upper bound of string
    NULL,  // members of sub message (initialized later)
    true,  // is array
    0,  // array size
    false,  // is upper bound
    offsetof(lane_parameter_msg__msg__LaneMarkingProjectedArrayBoth, markings_right),  // bytes offset in struct
    NULL,  // default value
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__size_function__LaneMarkingProjected__markings_right,  // size() function pointer
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__get_const_function__LaneMarkingProjected__markings_right,  // get_const(index) function pointer
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__get_function__LaneMarkingProjected__markings_right,  // get(index) function pointer
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__resize_function__LaneMarkingProjected__markings_right  // resize(index) function pointer
  }
};

static const rosidl_typesupport_introspection_c__MessageMembers LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_members = {
  "lane_parameter_msg__msg",  // message namespace
  "LaneMarkingProjectedArrayBoth",  // message name
  3,  // number of fields
  sizeof(lane_parameter_msg__msg__LaneMarkingProjectedArrayBoth),
  LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_member_array,  // message members
  LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_init_function,  // function to initialize message memory (memory has to be allocated)
  LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_fini_function  // function to terminate message instance (will not free memory)
};

// this is not const since it must be initialized on first access
// since C does not allow non-integral compile-time constants
static rosidl_message_type_support_t LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_type_support_handle = {
  0,
  &LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_members,
  get_message_typesupport_handle_function,
};

ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_lane_parameter_msg
const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lane_parameter_msg, msg, LaneMarkingProjectedArrayBoth)() {
  LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_member_array[0].members_ =
    ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Header)();
  LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_member_array[1].members_ =
    ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lane_parameter_msg, msg, LaneMarkingProjected)();
  LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_member_array[2].members_ =
    ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lane_parameter_msg, msg, LaneMarkingProjected)();
  if (!LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_type_support_handle.typesupport_identifier) {
    LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_type_support_handle.typesupport_identifier =
      rosidl_typesupport_introspection_c__identifier;
  }
  return &LaneMarkingProjectedArrayBoth__rosidl_typesupport_introspection_c__LaneMarkingProjectedArrayBoth_message_type_support_handle;
}
#ifdef __cplusplus
}
#endif
