nsp specific components for the NSP version of the impact endpoint

Dependents:   mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet mbed_nsp_endpoint_nxp

Committer:
ansond
Date:
Fri Sep 26 05:55:44 2014 +0000
Revision:
28:b6a7959c8be0
Parent:
4:7f7fe167d9c0
updates for new logger

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 4:7f7fe167d9c0 1 /* Copyright C2013 Doug Anson, MIT License
ansond 4:7f7fe167d9c0 2 *
ansond 4:7f7fe167d9c0 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 4:7f7fe167d9c0 4 * and associated documentation files the "Software", to deal in the Software without restriction,
ansond 4:7f7fe167d9c0 5 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 4:7f7fe167d9c0 6 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 4:7f7fe167d9c0 7 * furnished to do so, subject to the following conditions:
ansond 4:7f7fe167d9c0 8 *
ansond 4:7f7fe167d9c0 9 * The above copyright notice and this permission notice shall be included in all copies or
ansond 4:7f7fe167d9c0 10 * substantial portions of the Software.
ansond 4:7f7fe167d9c0 11 *
ansond 4:7f7fe167d9c0 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 4:7f7fe167d9c0 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 4:7f7fe167d9c0 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 4:7f7fe167d9c0 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 4:7f7fe167d9c0 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 4:7f7fe167d9c0 17 */
ansond 4:7f7fe167d9c0 18
ansond 4:7f7fe167d9c0 19 #ifndef _NSP_LIGHT_RESOURCE_FACTORY_H_
ansond 4:7f7fe167d9c0 20 #define _NSP_LIGHT_RESOURCE_FACTORY_H_
ansond 4:7f7fe167d9c0 21
ansond 4:7f7fe167d9c0 22 // Base Class
ansond 4:7f7fe167d9c0 23 #include "NSPResourceFactory.h"
ansond 4:7f7fe167d9c0 24
ansond 4:7f7fe167d9c0 25 // Resource Initializar callback structure
ansond 4:7f7fe167d9c0 26 typedef void (*resourceInitializer)(Resource *);
ansond 4:7f7fe167d9c0 27
ansond 4:7f7fe167d9c0 28 class NSPLightResourceFactory : public NSPResourceFactory {
ansond 4:7f7fe167d9c0 29 public:
ansond 28:b6a7959c8be0 30 NSPLightResourceFactory(Logger *logger,void *endpoint);
ansond 4:7f7fe167d9c0 31 virtual ~NSPLightResourceFactory();
ansond 4:7f7fe167d9c0 32
ansond 4:7f7fe167d9c0 33 virtual void createResources(char *endpoint_name);
ansond 4:7f7fe167d9c0 34 };
ansond 4:7f7fe167d9c0 35
ansond 4:7f7fe167d9c0 36 #endif // _NSP_LIGHT_RESOURCE_FACTORY_H_