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 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
24 * This file contains APIs for Plugin Interface module to be implemented.
27 #include "plugininterface.h"
28 #include "plugininterfaceinternal.h"
29 #include "plugintranslatortypes.h"
31 // Internal Note: This API will try to start IoTivity. If it is already
32 // started, nothing will occur. The IoTivity stack will not
33 // allow another instance to occur within the same program space
34 // and will even return a soft success when we try (ie.
36 OCStackResult PIStartPlugin(PIPluginType pluginType, PIPluginBase** plugin)
38 return OC_STACK_NOTIMPL;
41 OCStackResult PIStopPlugin(PIPluginBase * plugin)
43 return OC_STACK_NOTIMPL;
46 OCStackResult PIProcess(PIPluginBase * plugin)
48 OCStackResult result = OC_STACK_OK;
51 return OC_STACK_INVALID_PARAM;
53 if(plugin->type == PLUGIN_ZIGBEE)
55 result = ProcessZigbee((PIPlugin_Zigbee *) plugin);
56 if(result != OC_STACK_OK)
63 return OC_STACK_ERROR;
68 OCStackResult ProcessZigbee(PIPlugin_Zigbee * plugin)