🌐 AI搜索 & 代理 主页
blob: 74555c90c449ffa89226d264f46c433580707f61 [file] [log] [blame]
Daniel Barkalow6eb8ae02005-04-18 18:39:481#ifndef BLOB_H
2#define BLOB_H
3
4#include "object.h"
5
6extern const char *blob_type;
7
8struct blob {
9 struct object object;
10};
11
Stefan Beller17126cd2018-06-29 01:22:0812struct blob *lookup_blob(struct repository *r, const struct object_id *oid);
Daniel Barkalow6eb8ae02005-04-18 18:39:4813
Daniel Barkalow837d3952010-01-18 18:06:2814/**
15 * Blobs do not contain references to other objects and do not have
16 * structured data that needs parsing. However, code may use the
17 * "parsed" bit in the struct object for a blob to determine whether
18 * its content has been found to actually be available, so
19 * parse_blob_buffer() is used (by object.c) to flag that the object
20 * has been read successfully from the database.
21 **/
Jeff Kingc1166ca2022-12-13 11:11:5722void parse_blob_buffer(struct blob *item);
Daniel Barkalowa510bfa2005-04-28 14:46:3323
Daniel Barkalow6eb8ae02005-04-18 18:39:4824#endif /* BLOB_H */