Added logic to notify all observers when a resource has been deleted by
authorJoseph Morrow <joseph.l.morrow@intel.com>
Mon, 13 Oct 2014 18:40:52 +0000 (14:40 -0400)
committerJoseph Morrow <joseph.l.morrow@intel.com>
Mon, 13 Oct 2014 18:40:52 +0000 (14:40 -0400)
commitf2d3e4fdccbad1ee3864d1c1f37739246906a54d
treeea86abace2a616f530b7a7ff5ce0d0d9314c1342
parentcff17bcb306f01877bdb46140d8c86dc61e7e982
Added logic to notify all observers when a resource has been deleted by
OCDeleteResource API or when OCStop() is called. This will effectively tell
all observers that "this" resource is no longer available. This information
can be used by a client to infer that the server is going down.

If any more changes are req'q to encompass the new "Client able to delete
a resource" user story, a new changeset will be generated.

To come: A changeset containing a set (server and client) of examples
using this functionality.

Patch 2: Thuyen rebased on top of mine and for some reason needed to change
the author of my changeset, but doesn't appear to have made any changes to
my changeset other than rebasing it onto master.

Patch 3: Rebased on to newest master and made changes req' by Sachin and
Sudarshan in Patch 1 comments.

Change-Id: I343a5589c2988c45da95ba6d15685c21fa4704b6
csdk/libcoap-4.1.1/pdu.h
csdk/occoap/include/occoap.h
csdk/occoap/src/occoap.c
csdk/occoap/src/occoaphelper.c
csdk/stack/include/ocstack.h
csdk/stack/src/ocobserve.c
csdk/stack/src/ocstack.c