X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fsrc%2Fconsumer%2FNSConsumerCommon.h;h=2100b225244301e394b030c9307e7176c46917cb;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=ea1dea85591c75412ba18052d147046500e58bcd;hpb=4e5733cb19972d5d49922cddce0821ba5311207a;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/src/consumer/NSConsumerCommon.h b/service/notification/src/consumer/NSConsumerCommon.h index ea1dea8..2100b22 100644 --- a/service/notification/src/consumer/NSConsumerCommon.h +++ b/service/notification/src/consumer/NSConsumerCommon.h @@ -33,13 +33,12 @@ extern "C" { #include "ocstack.h" #define NS_QOS OC_HIGH_QOS -#define NS_RESOURCE_TYPE "oic.r.notification" +#define NS_RESOURCE_TYPE "x.org.iotivity.notification" #define NS_RESOURCE_URI "/notification" #define NS_INTERFACE_BASELINE "oic.if.baseline" -#define NS_INTERFACE_NOTIFICATION "oic.if.notification" #define NS_RESOURCE_QUERY "/oic/res" -#define NS_DISCOVER_QUERY "/oic/res?rt=oic.r.notification" +#define NS_DISCOVER_QUERY "/oic/res?rt=x.org.iotivity.notification" #define NS_DEVICE_ID_LENGTH 37 typedef enum @@ -97,13 +96,6 @@ typedef struct } NSSyncInfo_internal; -typedef struct -{ - NSSyncType status; - NSMessage * msg; - -} NSStoreMessage; - bool NSIsStartedConsumer(); void NSSetIsStartedConsumer(bool setValue); @@ -122,19 +114,23 @@ void NSSetConsumerId(char * cId); char * NSMakeRequestUriWithConsumerId(const char * uri); NSTask * NSMakeTask(NSTaskType, void *); - NSResult NSConsumerPushEvent(NSTask *); +NSMessage * NSGetMessage(OCRepPayload * payload); NSMessage * NSCopyMessage(NSMessage *); void NSRemoveMessage(NSMessage *); +void NSGetProviderPostClean( + char * pId, char * mUri, char * sUri, char * tUri, NSProviderConnectionInfo * connection); + +NSProvider_internal * NSGetProvider(OCClientResponse * clientResponse); NSProviderConnectionInfo * NSCreateProviderConnections(OCDevAddr *); NSProviderConnectionInfo * NSCopyProviderConnections(NSProviderConnectionInfo *); void NSRemoveConnections(NSProviderConnectionInfo *); NSProvider_internal * NSCopyProvider_internal(NSProvider_internal *); NSProvider * NSCopyProvider(NSProvider_internal *); -void NSRemoveProvider_internal(NSProvider_internal *); +void NSRemoveProvider_internal(void *); void NSRemoveProvider(NSProvider *); NSTopicLL * NSCopyTopicNode(NSTopicLL *); @@ -147,7 +143,8 @@ void NSRemoveTopicLL(NSTopicLL *); OCStackResult NSInvokeRequest(OCDoHandle * handle, OCMethod method, const OCDevAddr * addr, const char * queryUrl, OCPayload * payload, - void * callbackFunc, void * callbackData, OCConnectivityType type); + void * callbackFunc, void * callbackData, + OCClientContextDeleter cd, OCConnectivityType type); bool NSOCResultToSuccess(OCStackResult ret);