* Write an object into the object database source via a stream. The overall * length of the object must be known in advance. * * Return 0 on success, a negative error code otherwise. Populates the given * out pointer for the object ID. */
| 425 | * out pointer for the object ID. |
| 426 | */ |
| 427 | static inline int odb_source_write_object_stream(struct odb_source *source, |
| 428 | struct odb_write_stream *stream, |
| 429 | size_t len, |
| 430 | struct object_id *oid) |
| 431 | { |
| 432 | return source->write_object_stream(source, stream, len, oid); |
| 433 | } |
| 434 | |
| 435 | /* |
| 436 | * Read the list of alternative object database sources from the given backend |
no outgoing calls