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 reftable_buf_return_block(void *b UNUSED, struct reftable_block *dest)
{}

static void reftable_buf_close(void *b UNUSED)
{}

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

static uint64_t reftable_buf_size(void *b)
{}

static struct reftable_block_source_vtable reftable_buf_vtable =;

void block_source_from_buf(struct reftable_block_source *bs,
			   struct reftable_buf *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)
{}