1
#ifndef __INTER_LAYER_H__
2
#define __INTER_LAYER_H__
6
* The device's register info at /etc/kydevmonit/ xml file.
7
* This method find and load the device's xml file that match the
8
* dbus_name and object_name.
9
* And load the share library of matched dervice.
10
* @return 0 successful; 1 failed
12
int interlayer_load_devices(const char* dbus_name, const char* object_name);
15
* Return the information to ret_desc about had registered device.
16
* If the len(devicename) == 0 , the information only include device_name,device_code.
17
* else the information include all method's name, method's code, method's type for the
18
* special device by param 'devicename' point.
20
* @return 0 successful ; 1 failed
22
int interlayer_get_devices_intropect(const char* dbus_name, const char* object_name, const char* devicename,char* ret_desc);
25
* Call the device method by devicecode and methodcode point.
26
* @param If this device method need a param
27
* @error_no the device method invoke return statuscode
29
* @desc The describtion about the error_no
30
* @return 0 successful ; 1 failed
32
int interlayer_call_device_method(int devicecode, int methodcode,const char* param, int* error_no, int* count, char* desc);