Home
last modified time | relevance | path

Searched refs:vehicle_str (Results 1 – 2 of 2) sorted by relevance

/hardware/libhardware/modules/vehicle/
Dvehicle.c135 static int alloc_vehicle_str_from_cstr(const char* string, vehicle_str_t* vehicle_str) { in alloc_vehicle_str_from_cstr() argument
137 vehicle_str->data = (uint8_t*) malloc(len); in alloc_vehicle_str_from_cstr()
138 if (vehicle_str->data == NULL) { in alloc_vehicle_str_from_cstr()
141 memcpy(vehicle_str->data, string, len); in alloc_vehicle_str_from_cstr()
142 vehicle_str->len = len; in alloc_vehicle_str_from_cstr()
/hardware/libhardware/include/hardware/
Dvehicle.h1308 typedef struct vehicle_str { struct