X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fstack%2Finclude%2Focstack.h;h=96bae43d6b389d6e88e21a7af31b8a03eace9b8a;hb=847996e6e5e387e38b7f56814016632d62f0cfe7;hp=897d7700eac482fc3f4f0fc12e06e392b8553e34;hpb=7e5046079bc8c38470e79aa686091ec18b9c0dd8;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/stack/include/ocstack.h b/resource/csdk/stack/include/ocstack.h index 897d770..96bae43 100644 --- a/resource/csdk/stack/include/ocstack.h +++ b/resource/csdk/stack/include/ocstack.h @@ -245,7 +245,6 @@ OCStackResult OCCancel(OCDoHandle handle, */ OCStackResult OCRegisterPersistentStorageHandler(OCPersistentStorage* persistentStorageHandler); -#ifdef WITH_PRESENCE /** * When operating in OCServer or OCClientServer mode, * this API will start sending out presence notifications to clients via multicast. @@ -277,8 +276,6 @@ OCStackResult OCStartPresence(const uint32_t ttl); */ OCStackResult OCStopPresence(); -#endif // WITH_PRESENCE - /** * This function sets default device entity handler. @@ -903,6 +900,14 @@ OCStackResult OCGetKey(unsigned char* key); */ OCStackResult OCSetOtmEventHandler(void *ctx, OCOtmEventHandler cb); + /** + * Gets the bool state of "isOp" property on the pstat resource + * @param isOp a pointer to be assigned to isop property + * @return Returns ::OC_STACK_OK. + */ + +OCStackResult OCGetDeviceOperationalState(bool* isOp); + #ifdef __cplusplus } #endif // __cplusplus