Lines Matching refs:api
116 FunctionSpecificationMessage* api = call_msg->mutable_api(); in CallFunction() local
120 LOG(DEBUG) << "Call Function " << api->name(); in CallFunction()
123 for (int index = 0; index < api->arg_size(); index++) { in CallFunction()
124 auto* arg = api->mutable_arg(index); in CallFunction()
132 if (!driver->CallFunction(*api, callback_socket_name_, &result_msg)) { in CallFunction()
133 LOG(ERROR) << "Failed to call function: " << api->DebugString(); in CallFunction()
137 if (!driver->Fuzz(api, &result, callback_socket_name_)) { in CallFunction()
138 LOG(ERROR) << "Failed to call function: " << api->DebugString(); in CallFunction()
142 LOG(DEBUG) << "Called function " << api->name(); in CallFunction()
145 driver->FunctionCallEnd(api); in CallFunction()
159 return ProcessFuncResultsForLibrary(api, result); in CallFunction()
190 FunctionSpecificationMessage* api = call_msg->mutable_api(); in GetAttribute() local
191 LOG(DEBUG) << "Get Atrribute " << api->name() << " parent_path(" in GetAttribute()
192 << api->parent_path() << ")"; in GetAttribute()
193 if (!driver->GetAttribute(api, &result)) { in GetAttribute()
199 api->mutable_return_type()->set_type(TYPE_STRING); in GetAttribute()
200 api->mutable_return_type()->mutable_string_value()->set_message( in GetAttribute()
202 api->mutable_return_type()->mutable_string_value()->set_length( in GetAttribute()
206 google::protobuf::TextFormat::PrintToString(*api, output); in GetAttribute()
209 return ProcessFuncResultsForLibrary(api, result); in GetAttribute()