replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / csdk / stack / include / internal / occlientcb.h
index 90c01b1..a4c2366 100644 (file)
@@ -36,6 +36,7 @@
 #include "ocresource.h"
 #include "cacommon.h"
 
+#ifdef WITH_PRESENCE
 /**
  * Data structure For presence Discovery.
  * This is the TTL associated with presence.
@@ -51,21 +52,7 @@ typedef struct OCPresence
     /** TTL Level. */
     uint32_t TTLlevel;
 } OCPresence;
-
-/**
- * Data structure to hold Multicast node identity for resource discovery.
- */
-typedef struct OCMulticastNode
-{
-    /** URI of new resource.*/
-    char * uri;
-
-    /** URI of new resource that entity handler might create.*/
-    uint32_t nonce;
-
-    /** Linked list; for multicast nodes.*/
-    struct OCMulticastNode * next;
-} OCMulticastNode;
+#endif // WITH_PRESENCE
 
 /**
  * Forward declaration of resource type.
@@ -218,29 +205,5 @@ void DeleteClientCBList();
  */
 void FindAndDeleteClientCB(ClientCB * cbNode);
 
-/** @ingroup ocstack
- *
- * This method is used to search a multicast presence node from list.
- *
- * @param[in]  uri   the uri of the request.
- *
- * @return OCMulticastNode
- *              The resulting node from making this call. Null if doesn't exist.
- */
-
-OCMulticastNode* GetMCPresenceNode(const char * uri);
-
-/** @ingroup ocstack
- *
- * This method is used to add a multicast presence node to the list.
- * @param[out] outnode  the resulting node from making this call. Null if out of memory.
- * @param[in] uri       the uri of the server.
- * @param[in] nonce     current nonce for the server
- *
- * @return OC_STACK_OK for Success, otherwise some error value
- */
-
-OCStackResult AddMCPresenceNode(OCMulticastNode** outnode, char* uri, uint32_t nonce);
-
 #endif //OC_CLIENT_CB