mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-07 03:17:13 +08:00
30 lines
627 B
C
30 lines
627 B
C
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
#ifndef BLOCK_H
|
|
#define BLOCK_H
|
|
|
|
typedef struct _BMetadata BlockMetadata;
|
|
typedef struct _BMetadata BMetadata;
|
|
|
|
struct _BMetadata {
|
|
char id[41];
|
|
uint32_t size;
|
|
};
|
|
|
|
/* Opaque block handle.
|
|
*/
|
|
typedef struct _BHandle BlockHandle;
|
|
typedef struct _BHandle BHandle;
|
|
|
|
enum {
|
|
BLOCK_READ,
|
|
BLOCK_WRITE,
|
|
};
|
|
|
|
typedef gboolean (*SeafBlockFunc) (const char *store_id,
|
|
int version,
|
|
const char *block_id,
|
|
void *user_data);
|
|
|
|
#endif
|