git-compat-util.h: add FLOSS headers for HPE NonStop
[git.git] / blob.h
blob1664872055783557e1836dcc64bc2f51c20c5b4f
1 #ifndef BLOB_H
2 #define BLOB_H
4 #include "object.h"
6 extern const char *blob_type;
8 struct blob {
9 struct object object;
12 struct blob *lookup_blob(struct repository *r, const struct object_id *oid);
14 int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size);
16 /**
17 * Blobs do not contain references to other objects and do not have
18 * structured data that needs parsing. However, code may use the
19 * "parsed" bit in the struct object for a blob to determine whether
20 * its content has been found to actually be available, so
21 * parse_blob_buffer() is used (by object.c) to flag that the object
22 * has been read successfully from the database.
23 **/
25 #endif /* BLOB_H */