~mimose/kydevmonit/test

« back to all changes in this revision

Viewing changes to interlayer/interlayer.h

  • Committer: guoyalong
  • Date: 2017-09-05 05:53:02 UTC
  • Revision ID: guoyalong@kylinos.cn-20170905055302-guv8kqgq8hvscbdb
Modified the direction structure; Remove the segment fault caused by xmlFree API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __INTER_LAYER_H__
2
 
#define __INTER_LAYER_H__
3
 
 
4
 
 
5
 
/**
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
11
 
 */
12
 
int interlayer_load_devices(const char* dbus_name, const char* object_name);
13
 
 
14
 
/**
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.
19
 
 *
20
 
 * @return 0 successful ; 1 failed
21
 
 */
22
 
int interlayer_get_devices_intropect(const char* dbus_name, const char* object_name, const char* devicename,char* ret_desc);
23
 
 
24
 
/**
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
28
 
  * @count
29
 
  * @desc The describtion about the error_no
30
 
  * @return 0 successful ; 1 failed
31
 
 */
32
 
int interlayer_call_device_method(int devicecode, int methodcode,const char* param, int* error_no, int* count, char* desc);
33
 
 
34
 
#endif