added max-age and content-format
Fork of mbedConnectorInterface by
Diff: api/Options.h
- Revision:
- 42:20c375e74e8e
- Parent:
- 19:e2cbaeeea509
- Child:
- 48:4b9ee3e32f93
--- a/api/Options.h Sat Apr 11 18:42:51 2015 +0000 +++ b/api/Options.h Sat Apr 11 21:14:28 2015 +0000 @@ -32,12 +32,23 @@ // include the mbed connector resource list #include "mbedConnectorInterface.h" +// determine if we have seen rtos.h yet or not... +#ifdef RTOS_H + // we will use the ThreadedResourceObserver if needed + #define CONNECTOR_USING_THREADS 1 +#endif + +// include the resource observer includes here so that they are not required in main.cpp +#include "ThreadedResourceObserver.h" +#include "TickerResourceObserver.h" + // Vector support #include <vector> // Resources list typedef vector<StaticResource *> StaticResourcesList; typedef vector<DynamicResource *> DynamicResourcesList; +typedef vector<ResourceObserver *> ResourceObserversList; // WiFi Security types typedef enum { @@ -171,8 +182,9 @@ uint8_t m_channel; // Endpoint Resources - StaticResourcesList m_static_resources; - DynamicResourcesList m_dynamic_resources; + StaticResourcesList m_static_resources; + DynamicResourcesList m_dynamic_resources; + ResourceObserversList m_resource_observers; }; } // namespace Connector