Skip to content

Commit 7de8d29

Browse files
committed
Core: pushlish ipx_msg_ipfix_add_{set,drec}_ref() functions
1 parent 6b2720e commit 7de8d29

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

include/ipfixcol2/message_ipfix.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,30 @@ ipx_msg_ipfix2base(ipx_msg_ipfix_t *msg)
201201
return (ipx_msg_t *) msg;
202202
}
203203

204+
/**
205+
* \brief Add a new IPFIX Set description.
206+
*
207+
* The record is uninitialized and user MUST fill it! The function is
208+
* intended for annotation of newly created IPFIX Message.
209+
* \param[in] msg IPFIX Message wrapper
210+
* \return Pointer to the record or NULL (memory allocation error)
211+
*/
212+
IPX_API struct ipx_ipfix_set *
213+
ipx_msg_ipfix_add_set_ref(struct ipx_msg_ipfix *msg);
214+
215+
/**
216+
* \brief Add a new IPFIX Data Record description.
217+
*
218+
* The record is uninitialized and user MUST fill it! The function is
219+
* intended for annotation of newly created IPFIX Message.
220+
* \warning The wrapper \p msg_ref can be reallocated and different pointer
221+
* can be returned!
222+
* \param[in,out] msg_ref IPFIX Message wrapper
223+
* \return Pointer to the record or NULL (memory allocation error)
224+
*/
225+
IPX_API struct ipx_ipfix_record *
226+
ipx_msg_ipfix_add_drec_ref(struct ipx_msg_ipfix **msg_ref);
227+
204228
/**@}*/
205229
#ifdef __cplusplus
206230
}

src/core/message_ipfix.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -116,26 +116,4 @@ struct ipx_msg_ipfix {
116116
size_t
117117
ipx_msg_ipfix_size(uint32_t rec_cnt, size_t rec_size);
118118

119-
/**
120-
* \brief Add a new IPFIX Set
121-
*
122-
* The record is uninitialized and user MUST fill it!
123-
* \param[in] msg IPFIX Message wrapper
124-
* \return Pointer to the record or NULL (memory allocation error)
125-
*/
126-
struct ipx_ipfix_set *
127-
ipx_msg_ipfix_add_set_ref(struct ipx_msg_ipfix *msg);
128-
129-
/**
130-
* \brief Add a new IPFIX Data Record
131-
*
132-
* The record is uninitialized and user MUST fill it!
133-
* \warning The wrapper \p msg_ref can be reallocated and different pointer can be returned!
134-
* \param[in,out] msg_ref IPFIX Message wrapper
135-
* \return Pointer to the record or NULL (memory allocation error)
136-
*/
137-
struct ipx_ipfix_record *
138-
ipx_msg_ipfix_add_drec_ref(struct ipx_msg_ipfix **msg_ref);
139-
140-
141119
#endif // IPFIXCOL_MESSAGE_IPFIX_INTERNAL_H

0 commit comments

Comments
 (0)