Statistics
| Branch: | Revision:

grapes / src / ChunkIDSet / chunkids_iface.h @ d478a94d

History | View | Annotate | Download (467 Bytes)

1
#ifndef CHUNKIDS_IFACE
2
#define CHUNKIDS_IFACE
3

    
4
struct chunkID_set;
5

    
6
struct cids_ops_iface {
7
  int (*add_chunk)(struct chunkID_set *h, int chunk_id);
8
  int (*check)(const struct chunkID_set *h, int chunk_id);
9
};
10
struct cids_encoding_iface {
11
  uint8_t *(*encode)(const struct chunkID_set *h, uint8_t *buff, int buff_len, int meta_len);
12
  const uint8_t *(*decode)(struct chunkID_set *h, const uint8_t *buff, int buff_len, int *meta_len);
13
};
14

    
15
#endif        /* CHUNKIDS_IFACE */