RTI Connext DDS Micro  Version 2.4.9
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cdr_log.h
Go to the documentation of this file.
1 /*
2  * FILE: cdr_log.h CDR Log definitions
3  *
4  * (c) Copyright, Real-Time Innovations, 2012-2015.
5  * All rights reserved.
6  *
7  * No duplications, whole or partial, manual or electronic, may be made
8  * without express written permission. Any such copies, or
9  * revisions thereof, must display this notice unaltered.
10  * This code contains trade secrets of Real-Time Innovations, Inc.
11  *
12  * Modification History
13  * --------------------
14  * 14aug2012,kaj Written
15  */
16 /*ce
17  * \file
18  * \brief CDR Log
19  */
20 #ifndef cdr_log_h
21 #define cdr_log_h
22 
23 #ifndef osapi_log_h
24 #include "osapi/osapi_log.h"
25 #endif
26 
27 /*ce
28  * \brief Failed to allocate stream or stream buffer
29  * \ingroup CDRLogCodesClass
30  */
31 #define CDR_LOG_STREAM_ALLOC_EC (CDR_LOG_BASE + 1)
32 #define CDR_LOG_STREAM_ALLOC(level_,size_) \
33 OSAPI_LOG_ENTRY_ADD_1INT((level_),CDR_LOG_STREAM_ALLOC_EC,\
34  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,"size",(size_))
35 
36 /*ce
37  * \brief Failed to set stream's current offset
38  * \ingroup CDRLogCodesClass
39  */
40 #define CDR_LOG_SET_OFFSET_EC (CDR_LOG_BASE + 2)
41 #define CDR_LOG_SET_OFFSET(level_,offset_) \
42 OSAPI_LOG_ENTRY_ADD_1INT((level_),CDR_LOG_SET_OFFSET_EC,\
43  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,"offset",(offset_))
44 
45 
46 /*ce
47  * \brief Failed to increament stream's current offset
48  * \ingroup CDRLogCodesClass
49  */
50 #define CDR_LOG_INCR_OFFSET_EC (CDR_LOG_BASE + 3)
51 #define CDR_LOG_INCR_OFFSET(level_,offset_) \
52 OSAPI_LOG_ENTRY_ADD_1INT((level_),CDR_LOG_INCR_OFFSET_EC,\
53  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,"offset",(offset_))
54 
55 
56 #endif /* cdr_log_h */

RTI Connext DDS Micro Version 2.4.9 Copyright © Thu Dec 15 2016 Real-Time Innovations, Inc