1 //******************************************************************
3 // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //******************************************************************
25 * This file contains the definition, types and APIs for resource(s) be
29 #ifndef PLUGINTRANSLATORTYPES_H_
30 #define PLUGINTRANSLATORTYPES_H_
38 // This file will hold structs which will help aid in abstraction of zigbee
39 // protocol to a PIPlugin.:
43 PIPluginBase * header;
44 struct PIResource_Zigbee * resource; // All resources which exist within this context.
45 //Todo: Whatever other zigbee plugin specific stuff...
46 //Todo: zigbee_homeautomationprofile profile;
50 * Header for all PIResources.
54 struct PIResourceBase * next; // Linked list of resources.
55 PIPluginBase * plugin; // Context this resource exists.
56 OCResourceHandle * resourceHandle; // Handle to OIC Resource.
61 // Todo: This needs to map nicely to a struct that's defined in Zigbee_wrapper
63 // Todo: This struct will be refactored once Zigbee_Wrapper is finished.
67 * Parameter list for a resource. Abstraction of PIResource.
71 PIResourceBase * header;
72 PIPlugin_Zigbee * plugin; // Context which this Zigbee device exists.
73 PIZigbeeProfile zigbeeProfile; // Representation of a Zigbee Device.
80 #endif /* PLUGINTRANSLATORTYPES_H_ */