static xmlrpc_value * rpc_khep_cmd_config_speedctrl (xmlrpc_env *env, xmlrpc_value *param_array, void *user_data) { xmlrpc_int32 a; xmlrpc_int32 b; xmlrpc_int32 c; xmlrpc_int32 d; xmlrpc_parse_value(env, param_array, "(iiii)",&a,&b,&c,&d); if ( env->fault_occurred ) return NULL; xmlrpc_int32 res = khep_cmd_config_speedctrl(handles[a].fd,b,c,d); return xmlrpc_build_value(env, "i", res); } static xmlrpc_value * rpc_khep_cmd_setled (xmlrpc_env *env, xmlrpc_value *param_array, void *user_data) { xmlrpc_int32 a; xmlrpc_int32 b; xmlrpc_int32 c; xmlrpc_parse_value(env, param_array, "(iii)",&a,&b,&c); if ( env->fault_occurred ) return NULL; printf("fd = %d\n", handles[a].fd); xmlrpc_int32 res = khep_cmd_setled(handles[a].fd,b,c); return xmlrpc_build_value(env, "i", res); }