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

#include <stddef.h>
#include "lane_parameter_msg/msg/detail/lane_marking_projected_array__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__functions.h"
#include "lane_parameter_msg/msg/detail/lane_marking_projected_array__struct.h"


// Include directives for member types
// Member `markings`
#include "lane_parameter_msg/msg/lane_marking_projected.h"
// Member `markings`
#include "lane_parameter_msg/msg/detail/lane_marking_projected__rosidl_typesupport_introspection_c.h"

#ifdef __cplusplus
extern "C"
{
#endif

void LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_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__LaneMarkingProjectedArray__init(message_memory);
}

void LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_fini_function(void * message_memory)
{
  lane_parameter_msg__msg__LaneMarkingProjectedArray__fini(message_memory);
}

size_t LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__size_function__LaneMarkingProjected__markings(
  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 * LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__get_const_function__LaneMarkingProjected__markings(
  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 * LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__get_function__LaneMarkingProjected__markings(
  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 LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__resize_function__LaneMarkingProjected__markings(
  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 LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_message_member_array[1] = {
  {
    "markings",  // 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__LaneMarkingProjectedArray, markings),  // bytes offset in struct
    NULL,  // default value
    LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__size_function__LaneMarkingProjected__markings,  // size() function pointer
    LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__get_const_function__LaneMarkingProjected__markings,  // get_const(index) function pointer
    LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__get_function__LaneMarkingProjected__markings,  // get(index) function pointer
    LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__resize_function__LaneMarkingProjected__markings  // resize(index) function pointer
  }
};

static const rosidl_typesupport_introspection_c__MessageMembers LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_message_members = {
  "lane_parameter_msg__msg",  // message namespace
  "LaneMarkingProjectedArray",  // message name
  1,  // number of fields
  sizeof(lane_parameter_msg__msg__LaneMarkingProjectedArray),
  LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_message_member_array,  // message members
  LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_init_function,  // function to initialize message memory (memory has to be allocated)
  LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_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 LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_message_type_support_handle = {
  0,
  &LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_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, LaneMarkingProjectedArray)() {
  LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_message_member_array[0].members_ =
    ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lane_parameter_msg, msg, LaneMarkingProjected)();
  if (!LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_message_type_support_handle.typesupport_identifier) {
    LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_message_type_support_handle.typesupport_identifier =
      rosidl_typesupport_introspection_c__identifier;
  }
  return &LaneMarkingProjectedArray__rosidl_typesupport_introspection_c__LaneMarkingProjectedArray_message_type_support_handle;
}
#ifdef __cplusplus
}
#endif
