Modified preprocessor for headers of RI layer
authorjihwan.seo <jihwan.seo@samsung.com>
Thu, 19 Nov 2015 02:15:03 +0000 (11:15 +0900)
committerJon A. Cruz <jonc@osg.samsung.com>
Mon, 23 Nov 2015 19:28:33 +0000 (19:28 +0000)
Change-Id: I8639f3627f58ef8abd3200b3ac059807e6cbe55f
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4273
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
33 files changed:
resource/csdk/stack/include/ocstack.h
resource/csdk/stack/include/rdpayload.h
resource/include/AttributeValue.h
resource/include/IClientWrapper.h
resource/include/IServerWrapper.h
resource/include/InProcClientWrapper.h
resource/include/InProcServerWrapper.h
resource/include/InitializeException.h
resource/include/OCAndroid.h
resource/include/OCApi.h
resource/include/OCException.h
resource/include/OCHeaderOption.h
resource/include/OCPlatform.h
resource/include/OCPlatform_impl.h
resource/include/OCProvisioningManager.h
resource/include/OCRepresentation.h
resource/include/OCResource.h
resource/include/OCResourceRequest.h
resource/include/OCResourceResponse.h
resource/include/OCUtilities.h
resource/include/OutOfProcClientWrapper.h
resource/include/OutOfProcServerWrapper.h
resource/include/ResourceInitException.h
resource/include/StringConstants.h
resource/include/WrapperFactory.h
resource/oc_logger/include/oc_console_logger.h
resource/oc_logger/include/oc_log.hpp
resource/oc_logger/include/oc_log_stream.hpp
resource/oc_logger/include/oc_logger.h
resource/oc_logger/include/oc_logger.hpp
resource/oc_logger/include/oc_logger_types.h
resource/oc_logger/include/targets/oc_console_logger.h
resource/oc_logger/include/targets/oc_ostream_logger.h

index 29f39b5..641086f 100644 (file)
@@ -70,7 +70,7 @@ OCStackResult OCInit(const char *ipAddr, uint16_t port, OCMode mode);
  * @brief   Set Remote Access information for XMPP Client.
  * @param   raInfo            [IN] remote access info.
  *
- * @return  #CA_STATUS_OK
+ * @return  ::OC_STACK_OK on success, some other value upon failure.
  */
 OCStackResult OCSetRAInfo(const OCRAInfo_t *raInfo);
 #endif
index 1781263..c09680b 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _RDPAYLOAD_H_
-#define _RDPAYLOAD_H_
+#ifndef OC_RDPAYLOAD_H_
+#define OC_RDPAYLOAD_H_
 
 #include <cbor.h>
 #include "octypes.h"
@@ -237,4 +237,4 @@ void OCLinksLog(const LogLevel level, const OCLinksPayload *links);
 }
 #endif // __cplusplus
 
-#endif /* OCTYPES_H_ */
+#endif /* OC_RDPAYLOAD_H_ */
index 327bf13..0506e0f 100644 (file)
@@ -25,8 +25,8 @@
  * AttributeValue.
  */
 
-#ifndef __ATTRIBUTEVALUE_H
-#define __ATTRIBUTEVALUE_H
+#ifndef OC_ATTRIBUTEVALUE_H_
+#define OC_ATTRIBUTEVALUE_H_
 
 // These defines are required to get the boost::variant to hold more than 20 items.
 // documentation requires that you use a power of 10
@@ -131,4 +131,4 @@ namespace OC
 
     std::ostream& operator << (std::ostream& os, const AttributeType at);
 }
-#endif // __ATTRIBUTEVALUE_H
+#endif // OC_ATTRIBUTEVALUE_H_
index 272cd44..bfbb00f 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _I_CLIENT_WRAPPER_H_
-#define _I_CLIENT_WRAPPER_H_
+#ifndef OC_I_CLIENT_WRAPPER_H_
+#define OC_I_CLIENT_WRAPPER_H_
 
 #include <memory>
 #include <string>
index 66f2007..62f878a 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _I_SERVER_WRAPPER_H_
-#define _I_SERVER_WRAPPER_H_
+#ifndef OC_I_SERVER_WRAPPER_H_
+#define OC_I_SERVER_WRAPPER_H_
 
 #include <memory>
 #include <string>
index f6b7764..62830d5 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _IN_PROC_CLIENT_WRAPPER_H_
-#define _IN_PROC_CLIENT_WRAPPER_H_
+#ifndef OC_IN_PROC_CLIENT_WRAPPER_H_
+#define OC_IN_PROC_CLIENT_WRAPPER_H_
 
 #include <thread>
 #include <mutex>
index 8eb78e3..2e04e58 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _IN_PROC_SERVER_WRAPPER_H_
-#define _IN_PROC_SERVER_WRAPPER_H_
+#ifndef OC_IN_PROC_SERVER_WRAPPER_H_
+#define OC_IN_PROC_SERVER_WRAPPER_H_
 
 #include <thread>
 #include <mutex>
index bc5a3d2..ab5282f 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _INITIALIZE_EXCEPTION_H_
-#define _INITIALIZE_EXCEPTION_H_
+#ifndef OC_INITIALIZE_EXCEPTION_H_
+#define OC_INITIALIZE_EXCEPTION_H_
 
 #include <stdexcept>
 #include "StringConstants.h"
index 2e7f7f7..2691007 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _OCANDROID_H_
-#define _OCANDROID_H_
+#ifndef OC_ANDROID_H_
+#define OC_ANDROID_H_
 
 #ifdef __ANDROID__
 #include <string>
index ef27844..c0fdf93 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __INTEL_OCAPI_H_2014_07_10
-#define __INTEL_OCAPI_H_2014_07_10
+#ifndef OC_OCAPI_H_
+#define OC_OCAPI_H_
 
 #include <string>
 #include <sstream>
index 849bacd..1d70e7d 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __INTEL_OCEXCEPTION_H_2014_07_10
- #define __INTEL_OCEXCEPTION_H_2014_07_10
+#ifndef OC_EXCEPTION_H_
+#define OC_EXCEPTION_H_
 
 #include <stdexcept>
 #include <string>
index c70ecc0..65ec176 100644 (file)
@@ -25,8 +25,8 @@
  * OCHeaderOption.
  */
 
-#ifndef __OCHEADEROPTION_H
-#define __OCHEADEROPTION_H
+#ifndef OC_HEADEROPTION_H_
+#define OC_HEADEROPTION_H_
 
 #include <OCException.h>
 #include <StringConstants.h>
@@ -97,4 +97,4 @@ namespace OC
     } // namespace HeaderOption
 } // namespace OC
 
-#endif //__OCHEADEROPTION_H
+#endif // OC_HEADEROPTION_H_
index 04a1848..71c1dfd 100644 (file)
@@ -25,8 +25,8 @@
  * OCPlatform.
  */
 
-#ifndef __OCPLATFORM_H
-#define __OCPLATFORM_H
+#ifndef OC_PLATFORM_H_
+#define OC_PLATFORM_H_
 #include <OCApi.h>
 #include <OCPlatform_impl.h>
 namespace OC
@@ -492,7 +492,7 @@ namespace OC
     }
 }
 
-#endif //__OCPLATFORM_H
+#endif // OC_PLATFORM_H_
 
 
 
index fd221bb..6ad03d3 100644 (file)
@@ -26,8 +26,8 @@
  * central entrance to the stack.
  */
 
-#ifndef __OCPLATFORM_IMPL_H
-#define __OCPLATFORM_IMPL_H
+#ifndef OC_PLATFORM_IMPL_H_
+#define OC_PLATFORM_IMPL_H_
 
 #include <map>
 
index adecd89..63b94cf 100644 (file)
@@ -18,8 +18,8 @@
  *
  * *****************************************************************/
 
-#ifndef _OCPROVISIONINGMANAGER_CXX_H
-#define _OCPROVISIONINGMANAGER_CXX_H
+#ifndef OC_PROVISIONINGMANAGER_CXX_H_
+#define OC_PROVISIONINGMANAGER_CXX_H_
 
 #include <thread>
 
@@ -286,4 +286,4 @@ namespace OC
     };
 
 }
-#endif //_OCPROVISIONINGMANAGER_CXX_H
+#endif // OC_PROVISIONINGMANAGER_CXX_H_
index f47daf1..22fdb79 100644 (file)
@@ -25,8 +25,8 @@
  * to OCRepresentation.
  */
 
-#ifndef __OCREPRESENTATION_H
-#define __OCREPRESENTATION_H
+#ifndef OC_REPRESENTATION_H_
+#define OC_REPRESENTATION_H_
 
 
 #include <string>
@@ -423,5 +423,5 @@ namespace OC
 } // namespace OC
 
 
-#endif //__OCREPRESENTATION_H
+#endif // OC_REPRESENTATION_H_
 
index c2754a2..3fe3a68 100644 (file)
@@ -25,8 +25,8 @@
  * Resource.
  */
 
-#ifndef __OCRESOURCE_H
-#define __OCRESOURCE_H
+#ifndef OC_RESOURCE_H_
+#define OC_RESOURCE_H_
 
 #include <memory>
 #include <random>
@@ -548,5 +548,5 @@ namespace OC
 
 } // namespace OC
 
-#endif //__OCRESOURCE_H
+#endif // OC_RESOURCE_H
 
index 962ddb2..e17e3a6 100644 (file)
@@ -25,8 +25,8 @@
  * ResourceRequest.
  */
 
-#ifndef __OCRESOURCEREQUEST_H
-#define __OCRESOURCEREQUEST_H
+#ifndef OC_RESOURCEREQUEST_H_
+#define OC_RESOURCEREQUEST_H_
 
 #include "OCApi.h"
 #include "OCRepresentation.h"
@@ -219,4 +219,4 @@ namespace OC
     };
  }// namespace OC
 
-#endif //__OCRESOURCEREQUEST_H
+#endif // OC_RESOURCEREQUEST_H_
index fbdd2c9..474e90a 100644 (file)
@@ -25,8 +25,8 @@
  * ResourceResponse.
  */
 
-#ifndef __OCRESOURCERESPONSE_H
-#define __OCRESOURCERESPONSE_H
+#ifndef OC_RESOURCERESPONSE_H_
+#define OC_RESOURCERESPONSE_H_
 
 #include "OCApi.h"
 #include <IServerWrapper.h>
@@ -275,4 +275,4 @@ namespace OC
 
 } // namespace OC
 
-#endif //__OCRESOURCERESPONSE_H
+#endif // OC_RESOURCERESPONSE_H_
index 8c7c34f..ac9d6ad 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _INTEL_OCUTILITIES_H_
-#define _INTEL_OCUTILITIES_H_
+#ifndef OC_UTILITIES_H_
+#define OC_UTILITIES_H_
 
 #include <map>
 #include <vector>
index b8f63de..a6fd165 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _OUT_OF_PROC_CLIENT_WRAPPER_H_
-#define _OUT_OF_PROC_CLIENT_WRAPPER_H_
+#ifndef OC_OUT_OF_PROC_CLIENT_WRAPPER_H_
+#define OC_OUT_OF_PROC_CLIENT_WRAPPER_H_
 
 #include <OCApi.h>
 
index 744a14c..05d79e4 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _OUT_OF_PROC_SERVER_WRAPPER_H_
-#define _OUT_OF_PROC_SERVER_WRAPPER_H_
+#ifndef OC_OUT_OF_PROC_SERVER_WRAPPER_H_
+#define OC_OUT_OF_PROC_SERVER_WRAPPER_H_
 
 #include <OCApi.h>
 
index 9794e42..33cb27d 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _RESOURCE_INIT_EXCEPTION_H_
-#define _RESOURCE_INIT_EXCEPTION_H_
+#ifndef OC_RESOURCE_INIT_EXCEPTION_H_
+#define OC_RESOURCE_INIT_EXCEPTION_H_
 
 #include <stdexcept>
 #include "StringConstants.h"
index d6fd818..f0fae04 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _STRING_CONSTANTS_H_
-#define _STRING_CONSTANTS_H_
+#ifndef OC_STRING_CONSTANTS_H_
+#define OC_STRING_CONSTANTS_H_
 
 #include <string>
 
@@ -143,5 +143,5 @@ namespace OC
 
 }
 
-#endif // _STRING_CONSTANTS_H_
+#endif // OC_STRING_CONSTANTS_H_
 
index 2f15b80..1b31142 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef _WRAPPER_FACTORY_H_
-#define _WRAPPER_FACTORY_H_
+#ifndef OC_WRAPPER_FACTORY_H_
+#define OC_WRAPPER_FACTORY_H_
 
 #include <memory>
 #include <OCApi.h>
index 02adb4f..b8b738f 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __OC_CONSOLE_LOGGER_H_2014_09_5
- #define __OC_CONSOLE_LOGGER_H_2014_09_5
+#ifndef OC_CONSOLE_LOGGER_H_
+#define OC_CONSOLE_LOGGER_H_
 
 #include "oc_logger_types.h"
 
index dd145dd..6e92930 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __OC_LOG_HPP_20140910
- #define __OC_LOG_HPP_20140910
+#ifndef OC_LOG_HPP_
+#define OC_LOG_HPP_
 
 #include "oc_ostream_logger.hpp"
 #include "oc_log_stream.hpp"
index bafa141..f2e01ac 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __OC_LOG_STREAM_HPP_20140910
- #define __OC_LOG_STREAM_HPP_20140910
+#ifndef OC_LOG_STREAM_HPP_
+#define OC_LOG_STREAM_HPP_
 
 #include <iosfwd>
 #include <memory>
index 8368db0..9fd3878 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __OC_LOGGER_H_2014_09_5
- #define __OC_LOGGER_H_2014_09_5
+#ifndef OC_LOGGER_H_
+#define OC_LOGGER_H_
 
 #include "oc_logger_types.h"
 
index 2d0df21..3ddb762 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __OC_LOG_HPP_20140910
- #define __OC_LOG_HPP_20140910
+#ifndef OC_LOGGER_HPP_
+#define OC_LOGGER_HPP_
 
 #include "oc_logger.h"
 
index 2c807c7..83b6b3e 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __OC_LOGGER_TYPES_H_2024_09_5
- #define __OC_LOGGER_TYPES_H_2024_09_5
+#ifndef OC_LOGGER_TYPES_H_
+#define OC_LOGGER_TYPES_H_
 
 #include <stddef.h>
 
index 02adb4f..b8b738f 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __OC_CONSOLE_LOGGER_H_2014_09_5
- #define __OC_CONSOLE_LOGGER_H_2014_09_5
+#ifndef OC_CONSOLE_LOGGER_H_
+#define OC_CONSOLE_LOGGER_H_
 
 #include "oc_logger_types.h"
 
index 0431469..2fa7930 100644 (file)
@@ -18,8 +18,8 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __OC_OSTREAM_LOGGER_H_2014_09_5
- #define __OC_OSTREAM_LOGGER_H_2014_09_5
+#ifndef OC_OSTREAM_LOGGER_H_
+#define OC_OSTREAM_LOGGER_H_
 
 #include "oc_logger_types.h"