Re: API Change for TSMimeHdrPrint

2024-06-10 Thread Masakazu Kitajo
Ok, I didn't think that PR is actually related to the API change. Now the change makes sense to me. +1 The implementation of the API implementation, mime_hdr_print, requires the heap parameter for nothing (with ATS_UNUSED comment). So the heap isn't needed at all in the first place. On Mon, Jun

Re: API Change for TSMimeHdrPrint

2024-06-10 Thread Brian Neradt
After the refactor in this PR it is no longer needed: https://github.com/apache/trafficserver/pull/11432 On Mon, Jun 10, 2024 at 3:53 PM Masakazu Kitajo wrote: > It doesn't look like we can remove the first parameter, but I guess I'm > missing something. > > It's currently used in the API implem

Re: API Change for TSMimeHdrPrint

2024-06-10 Thread Masakazu Kitajo
It doesn't look like we can remove the first parameter, but I guess I'm missing something. It's currently used in the API implementation like this: HdrHeap *heap = ((HdrHeapSDKHandle *)bufp)->m_heap; and heap is used like this: mime_hdr_print(heap, mh, blk->end(), blk->write_avail(), &bufind

Re: API Change for TSMimeHdrPrint

2024-06-10 Thread Brian Neradt
+1 "Come to Me, all who are weary and heavy-laden, and I will give you rest. Take My yoke upon you and learn from Me, for I am gentle and humble in heart, and you will find rest for your souls. For My yoke is easy and My burden is light." ~ Matthew 11:28-30 On Mon, Jun 10, 2024 at 3:24 PM L

Re: API Change for TSMimeHdrPrint

2024-06-10 Thread Leif Hedstrom
On Mon, Jun 10, 2024 at 13:59 wrote: > Hello, > > After a refactor, the first parameter to TSMimeHdrPrint is unused, and we > are planning on removing it for ATS 10. The API will be changed as in the > following diff: > > -void TSMimeHdrPrint(TSMBuffer bufp, TSMLoc offset, TSIOBuffer iobufp); > +

API Change for TSMimeHdrPrint

2024-06-10 Thread josiah_vanderzee
Hello, After a refactor, the first parameter to TSMimeHdrPrint is unused, and we are planning on removing it for ATS 10. The API will be changed as in the following diff: -void TSMimeHdrPrint(TSMBuffer bufp, TSMLoc offset, TSIOBuffer iobufp); +void TSMimeHdrPrint(TSMLoc offset, TSIOBuffer io