Stubbing the metadata functions and updating their interfaces.

This commit is contained in:
Kevin Greenan 2014-07-30 22:06:26 -07:00
parent d6613f4e90
commit 1bb14c6a3a
2 changed files with 27 additions and 2 deletions

View File

@ -209,13 +209,15 @@ int liberasurecode_fragments_needed(int desc,
* client, but meaningful to the underlying library. It is used to verify
* stripes in verify_stripe_metadata().
*/
int liberasurecode_get_fragment_metadata(char *fragment);
int liberasurecode_get_fragment_metadata(char *fragment,
char **fragment_metadata, int *fragment_metadata_len);
/**
* Verify a subset of fragments generated by encode()
*/
int liberasurecode_verify_stripe_metadata(char **fragments);
int liberasurecode_verify_stripe_metadata(char **fragment_metadata,
int num_fragments, int fragment_metadata_len);
/**
* This computes the aligned size of a buffer passed into

View File

@ -788,6 +788,29 @@ int liberasurecode_get_minimum_encode_size(int desc)
{
return liberasurecode_get_aligned_data_size(desc, 1);
}
/**
* Get opaque metadata for a fragment. The metadata is opaque to the
* client, but meaningful to the underlying library. It is used to verify
* stripes in verify_stripe_metadata().
*/
int liberasurecode_get_fragment_metadata(char *fragment, char **fragment_metadata,
int *fragment_metadata_len)
{
int ret = 0;
return ret;
}
/**
* Verify a subset of fragments generated by encode()
*/
int liberasurecode_verify_stripe_metadata(char **fragments, int num_fragments,
int fragment_metadata_len)
{
int ret = 0;
return ret;
}
/* ==~=*=~==~=*=~==~=*=~==~=*=~==~=* misc *=~==~=*=~==~=*=~==~=*=~==~=*=~== */