#include "ocstackinternal.h"
#include "ocserverrequest.h"
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
/**
* Common JSON string components used by the stack to build JSON strings.
* These details are exposed in ocstackconfig.h file in the form of documentation.
/** "/oic/gateway" .*/
OC_GATEWAY_URI,
#endif
- #ifdef WITH_PRESENCE
+#ifdef WITH_PRESENCE
/** "/oic/ad" .*/
OC_PRESENCE,
- #endif
+#endif
+
+#ifdef MQ_BROKER
+ /** "/oic/ps" .*/
+ OC_MQ_BROKER_URI,
+#endif
+
+#ifdef TCP_ADAPTER
+ /** "/oic/ping" .*/
+ OC_KEEPALIVE_RESOURCE_URI,
+#endif
/** Max items in the list */
OC_MAX_VIRTUAL_RESOURCES //<s Max items in the list
+
} OCVirtualResources;
/**
* Prepare payload for resource representation.
*/
OCStackResult BuildResponseRepresentation(const OCResource *resourcePtr,
- OCRepPayload** payload);
-
-/**
- * Prepares a Payload for response.
- */
-OCStackResult BuildVirtualResourceResponse(const OCResource *resourcePtr,
- OCDiscoveryPayload* payload,
- OCDevAddr *endpoint);
+ OCRepPayload** payload, OCDevAddr *devAddr);
/**
* A helper function that Maps an @ref OCEntityHandlerResult type to an
*/
OCStackResult EntityHandlerCodeToOCStackCode(OCEntityHandlerResult ehResult);
+#ifdef __cplusplus
+}
+#endif // __cplusplus
#endif //OC_RESOURCEHANDLER_H
-