git/reftable/blocksource.c

/*
Copyright 2020 Google LLC

Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#include "system.h"

#include "basics.h"
#include "blocksource.h"
#include "reftable-blocksource.h"
#include "reftable-error.h"

static void strbuf_return_block(void *b UNUSED, struct reftable_block *dest)
{}

static void strbuf_close(void *b UNUSED)
{}

static int strbuf_read_block(void *v, struct reftable_block *dest, uint64_t off,
			     uint32_t size)
{}

static uint64_t strbuf_size(void *b)
{}

static struct reftable_block_source_vtable strbuf_vtable =;

void block_source_from_strbuf(struct reftable_block_source *bs,
			      struct strbuf *buf)
{}

struct file_block_source {};

static uint64_t file_size(void *b)
{}

static void file_return_block(void *b UNUSED, struct reftable_block *dest UNUSED)
{}

static void file_close(void *v)
{}

static int file_read_block(void *v, struct reftable_block *dest, uint64_t off,
			   uint32_t size)
{}

static struct reftable_block_source_vtable file_vtable =;

int reftable_block_source_from_file(struct reftable_block_source *bs,
				    const char *name)
{}