2 ==================================================================================
3 Copyright (c) 2019 Nokia
4 Copyright (c) 2018-2019 AT&T Intellectual Property.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ==================================================================================
21 Mnemonic rmr_set_trace.xfm
22 Abstract The manual page for the rmr_set_trace function.
23 Author E. Scott Daniels
28 .im &{lib}/man/setup.im
32 &h1(RMR Library Functions)
41 int rmr_set_trace( rmr_mbuf_t* mbuf, unsigned char* data, int len )
47 The &cw(rmr_set_trace) function will copy &cw(len) bytes from &cw(data) into the trace portion of
49 If the trace area of &cw(mbuf) is not the correct size, the message buffer will be reallocated
50 to ensure that enough space is available for the trace data.
54 The &cw(rmr_set_trace) function returns the number of bytes successfully copied to the message.
55 If 0 is returned either the message pointer was nil, or the size in the parameters was <= 0.