* @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
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef _RDPAYLOAD_H_
-#define _RDPAYLOAD_H_
+#ifndef OC_RDPAYLOAD_H_
+#define OC_RDPAYLOAD_H_
#include <cbor.h>
#include "octypes.h"
}
#endif // __cplusplus
-#endif /* OCTYPES_H_ */
+#endif /* OC_RDPAYLOAD_H_ */
* 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
std::ostream& operator << (std::ostream& os, const AttributeType at);
}
-#endif // __ATTRIBUTEVALUE_H
+#endif // OC_ATTRIBUTEVALUE_H_
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef _INITIALIZE_EXCEPTION_H_
-#define _INITIALIZE_EXCEPTION_H_
+#ifndef OC_INITIALIZE_EXCEPTION_H_
+#define OC_INITIALIZE_EXCEPTION_H_
#include <stdexcept>
#include "StringConstants.h"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef _OCANDROID_H_
-#define _OCANDROID_H_
+#ifndef OC_ANDROID_H_
+#define OC_ANDROID_H_
#ifdef __ANDROID__
#include <string>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
* OCHeaderOption.
*/
-#ifndef __OCHEADEROPTION_H
-#define __OCHEADEROPTION_H
+#ifndef OC_HEADEROPTION_H_
+#define OC_HEADEROPTION_H_
#include <OCException.h>
#include <StringConstants.h>
} // namespace HeaderOption
} // namespace OC
-#endif //__OCHEADEROPTION_H
+#endif // OC_HEADEROPTION_H_
* OCPlatform.
*/
-#ifndef __OCPLATFORM_H
-#define __OCPLATFORM_H
+#ifndef OC_PLATFORM_H_
+#define OC_PLATFORM_H_
#include <OCApi.h>
#include <OCPlatform_impl.h>
namespace OC
}
}
-#endif //__OCPLATFORM_H
+#endif // OC_PLATFORM_H_
* 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>
*
* *****************************************************************/
-#ifndef _OCPROVISIONINGMANAGER_CXX_H
-#define _OCPROVISIONINGMANAGER_CXX_H
+#ifndef OC_PROVISIONINGMANAGER_CXX_H_
+#define OC_PROVISIONINGMANAGER_CXX_H_
#include <thread>
};
}
-#endif //_OCPROVISIONINGMANAGER_CXX_H
+#endif // OC_PROVISIONINGMANAGER_CXX_H_
* to OCRepresentation.
*/
-#ifndef __OCREPRESENTATION_H
-#define __OCREPRESENTATION_H
+#ifndef OC_REPRESENTATION_H_
+#define OC_REPRESENTATION_H_
#include <string>
} // namespace OC
-#endif //__OCREPRESENTATION_H
+#endif // OC_REPRESENTATION_H_
* Resource.
*/
-#ifndef __OCRESOURCE_H
-#define __OCRESOURCE_H
+#ifndef OC_RESOURCE_H_
+#define OC_RESOURCE_H_
#include <memory>
#include <random>
} // namespace OC
-#endif //__OCRESOURCE_H
+#endif // OC_RESOURCE_H
* ResourceRequest.
*/
-#ifndef __OCRESOURCEREQUEST_H
-#define __OCRESOURCEREQUEST_H
+#ifndef OC_RESOURCEREQUEST_H_
+#define OC_RESOURCEREQUEST_H_
#include "OCApi.h"
#include "OCRepresentation.h"
};
}// namespace OC
-#endif //__OCRESOURCEREQUEST_H
+#endif // OC_RESOURCEREQUEST_H_
* ResourceResponse.
*/
-#ifndef __OCRESOURCERESPONSE_H
-#define __OCRESOURCERESPONSE_H
+#ifndef OC_RESOURCERESPONSE_H_
+#define OC_RESOURCERESPONSE_H_
#include "OCApi.h"
#include <IServerWrapper.h>
} // namespace OC
-#endif //__OCRESOURCERESPONSE_H
+#endif // OC_RESOURCERESPONSE_H_
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef _INTEL_OCUTILITIES_H_
-#define _INTEL_OCUTILITIES_H_
+#ifndef OC_UTILITIES_H_
+#define OC_UTILITIES_H_
#include <map>
#include <vector>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef _STRING_CONSTANTS_H_
-#define _STRING_CONSTANTS_H_
+#ifndef OC_STRING_CONSTANTS_H_
+#define OC_STRING_CONSTANTS_H_
#include <string>
}
-#endif // _STRING_CONSTANTS_H_
+#endif // OC_STRING_CONSTANTS_H_
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef _WRAPPER_FACTORY_H_
-#define _WRAPPER_FACTORY_H_
+#ifndef OC_WRAPPER_FACTORY_H_
+#define OC_WRAPPER_FACTORY_H_
#include <memory>
#include <OCApi.h>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef __OC_LOG_HPP_20140910
- #define __OC_LOG_HPP_20140910
+#ifndef OC_LOGGER_HPP_
+#define OC_LOGGER_HPP_
#include "oc_logger.h"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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"