@@ -628,56 +628,56 @@ LogicalSegmentLogicalFormat CipEpathGetNeededLogicalFormatForValue(
628628 return logical_format ;
629629}
630630
631- //TODO: Does not match the actual interface anymore, check how to fix
632- size_t CipEpathEncodeConnectionEpath (
633- const CipConnectionPathEpath * const connection_epath ,
634- CipOctet * * encoded_path ) {
635-
636- size_t encoded_path_length = 0 ;
637- {
638- SetPathSegmentType (kSegmentTypeLogicalSegment , * encoded_path );
639- SetPathLogicalSegmentLogicalType (kLogicalSegmentLogicalTypeClassId ,
640- * encoded_path );
641- LogicalSegmentLogicalFormat logical_value =
642- CipEpathGetNeededLogicalFormatForValue (connection_epath -> class_id );
643- SetPathLogicalSegmentLogicalFormat (logical_value , * encoded_path );
644- encoded_path_length += 1 ;
645- MoveMessageNOctets (1 , (const CipOctet * * ) encoded_path );
646- CipEpathSetLogicalValue (connection_epath -> class_id ,
647- logical_value ,
648- encoded_path );
649- }
650-
651- {
652- SetPathSegmentType (kSegmentTypeLogicalSegment , * encoded_path );
653- SetPathLogicalSegmentLogicalType (kLogicalSegmentLogicalTypeClassId ,
654- * encoded_path );
655- LogicalSegmentLogicalFormat logical_value =
656- CipEpathGetNeededLogicalFormatForValue (connection_epath -> instance_id );
657- SetPathLogicalSegmentLogicalFormat (logical_value , * encoded_path );
658- encoded_path_length += 1 ;
659- MoveMessageNOctets (1 , (const CipOctet * * ) encoded_path );
660- CipEpathSetLogicalValue (connection_epath -> instance_id ,
661- logical_value ,
662- encoded_path );
663- }
664-
665- if (0 != connection_epath -> attribute_id_or_connection_point ) {
666- SetPathSegmentType (kSegmentTypeLogicalSegment , * encoded_path );
667- SetPathLogicalSegmentLogicalType (kLogicalSegmentLogicalTypeClassId ,
668- * encoded_path );
669- LogicalSegmentLogicalFormat logical_value =
670- CipEpathGetNeededLogicalFormatForValue (
671- connection_epath -> attribute_id_or_connection_point );
672- SetPathLogicalSegmentLogicalFormat (logical_value , * encoded_path );
673- encoded_path_length += 1 ;
674- MoveMessageNOctets (1 , (const CipOctet * * ) encoded_path );
675- CipEpathSetLogicalValue (connection_epath -> attribute_id_or_connection_point ,
676- logical_value ,
677- encoded_path );
678- }
679- return encoded_path_length += 1 ;
680- }
631+ //// TODO: Does not match the actual interface anymore, check how to fix
632+ // size_t CipEpathEncodeConnectionEpath(
633+ // const CipConnectionPathEpath *const connection_epath,
634+ // CipOctet **encoded_path) {
635+ //
636+ // size_t encoded_path_length = 0;
637+ // {
638+ // SetPathSegmentType(kSegmentTypeLogicalSegment, *encoded_path);
639+ // SetPathLogicalSegmentLogicalType(kLogicalSegmentLogicalTypeClassId,
640+ // *encoded_path);
641+ // LogicalSegmentLogicalFormat logical_value =
642+ // CipEpathGetNeededLogicalFormatForValue(connection_epath->class_id);
643+ // SetPathLogicalSegmentLogicalFormat(logical_value, *encoded_path);
644+ // encoded_path_length += 1;
645+ // MoveMessageNOctets(1, (ENIPMessage * const) * encoded_path);
646+ // CipEpathSetLogicalValue(connection_epath->class_id,
647+ // logical_value,
648+ // * encoded_path);
649+ // }
650+ //
651+ // {
652+ // SetPathSegmentType(kSegmentTypeLogicalSegment, *encoded_path);
653+ // SetPathLogicalSegmentLogicalType(kLogicalSegmentLogicalTypeClassId,
654+ // *encoded_path);
655+ // LogicalSegmentLogicalFormat logical_value =
656+ // CipEpathGetNeededLogicalFormatForValue(connection_epath->instance_id);
657+ // SetPathLogicalSegmentLogicalFormat(logical_value, *encoded_path);
658+ // encoded_path_length += 1;
659+ // MoveMessageNOctets(1, (const CipOctet **) encoded_path);
660+ // CipEpathSetLogicalValue(connection_epath->instance_id,
661+ // logical_value,
662+ // encoded_path);
663+ // }
664+ //
665+ // if(0 != connection_epath->attribute_id_or_connection_point) {
666+ // SetPathSegmentType(kSegmentTypeLogicalSegment, *encoded_path);
667+ // SetPathLogicalSegmentLogicalType(kLogicalSegmentLogicalTypeClassId,
668+ // *encoded_path);
669+ // LogicalSegmentLogicalFormat logical_value =
670+ // CipEpathGetNeededLogicalFormatForValue(
671+ // connection_epath->attribute_id_or_connection_point);
672+ // SetPathLogicalSegmentLogicalFormat(logical_value, *encoded_path);
673+ // encoded_path_length += 1;
674+ // MoveMessageNOctets(1, (const CipOctet **) encoded_path);
675+ // CipEpathSetLogicalValue(connection_epath->attribute_id_or_connection_point,
676+ // logical_value,
677+ // encoded_path);
678+ // }
679+ // return encoded_path_length += 1;
680+ // }
681681
682682bool CipEpathEqual (const CipOctet * const path1 ,
683683 const CipUint path1_length ,
0 commit comments