Lines Matching refs:dest
292 _public_ int sd_bus_error_copy(sd_bus_error *dest, const sd_bus_error *e) { in sd_bus_error_copy() argument
296 if (!dest) in sd_bus_error_copy()
299 assert_return(!bus_error_is_dirty(dest), -EINVAL); in sd_bus_error_copy()
308 *dest = *e; in sd_bus_error_copy()
310 dest->name = strdup(e->name); in sd_bus_error_copy()
311 if (!dest->name) { in sd_bus_error_copy()
312 *dest = BUS_ERROR_OOM; in sd_bus_error_copy()
317 dest->message = strdup(e->message); in sd_bus_error_copy()
319 dest->_need_free = 1; in sd_bus_error_copy()
326 _public_ int sd_bus_error_move(sd_bus_error *dest, sd_bus_error *e) { in sd_bus_error_move() argument
331 if (dest) in sd_bus_error_move()
332 *dest = SD_BUS_ERROR_NULL; in sd_bus_error_move()
339 if (dest) { in sd_bus_error_move()
340 *dest = *e; in sd_bus_error_move()