X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fsoft-sensor-manager%2FSSMCore%2Fsrc%2FSSMInterface%2FSSMModelDefinition.h;h=73cbe581bde80011e18f1c4a79e2e6aa000f7b49;hb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;hp=c670db380441feac8f71f10edeaf9da0e5f21913;hpb=00b3660e45c56cb3db35dc2596a054f801b5591a;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h b/service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h index c670db3..73cbe58 100644 --- a/service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h +++ b/service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h @@ -23,6 +23,26 @@ #include #include +#if defined(WIN32) + +#if defined(SSMSENSOR_WINDOWS_EXPORTS) +#define INTERFACE_DECLSPEC __declspec(dllexport) +#elif defined(WIN32) +#define INTERFACE_DECLSPEC __declspec(dllimport) +#endif + +#elif defined(TIZEN) + +#include + +#define INTERFACE_DECLSPEC EXPORT_API + +#else + +#define INTERFACE_DECLSPEC + +#endif + #define SSM_MODEL_RETRY 3 typedef enum {SSM_ONCE, SSM_REPEAT} TypeofEvent; typedef enum {SSM_EVENT_NORMAL, SSM_EVENT_ADDED, SSM_REMOVED, SSM_UPDATED} RESOURCE_EVENT_TYPE; @@ -37,6 +57,7 @@ class ISSMResource ISSMResource(const std::string &n, const std::string &t) : name(n), type(t) { + location = SENSOR_LOCATION_LOCAL; } SENSOR_LOCATION location; std::string name;