* Write an object into the object database source. Returns 0 on success, a * negative error code otherwise. Populates the given out pointers for the * object ID and the compatibility object ID, if non-NULL. */
| 407 | * object ID and the compatibility object ID, if non-NULL. |
| 408 | */ |
| 409 | static inline int odb_source_write_object(struct odb_source *source, |
| 410 | const void *buf, unsigned long len, |
| 411 | enum object_type type, |
| 412 | struct object_id *oid, |
| 413 | struct object_id *compat_oid, |
| 414 | enum odb_write_object_flags flags) |
| 415 | { |
| 416 | return source->write_object(source, buf, len, type, oid, |
| 417 | compat_oid, flags); |
| 418 | } |
| 419 | |
| 420 | /* |
| 421 | * Write an object into the object database source via a stream. The overall |
no outgoing calls