summaryrefslogtreecommitdiff
path: root/include/erasurecode/erasurecode.h
diff options
context:
space:
mode:
authorKevin Greenan <kmgreen2@gmail.com>2014-08-02 10:05:28 -0700
committerKevin Greenan <kmgreen2@gmail.com>2014-08-05 14:33:39 -0700
commitdbbc02d3db33d1b939b06f4de3a1f6c23e89995b (patch)
tree726f42c148bda18fa7825d92a6dbfa027723e80c /include/erasurecode/erasurecode.h
parenta4ecec861acacb8afdd1de79b3b41e3e78d81428 (diff)
downloadliberasurecode-dbbc02d3db33d1b939b06f4de3a1f6c23e89995b.tar.gz
Add HD parameter to generic params.
Diffstat (limited to 'include/erasurecode/erasurecode.h')
-rw-r--r--include/erasurecode/erasurecode.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/erasurecode/erasurecode.h b/include/erasurecode/erasurecode.h
index a1d8c1a..f6bf457 100644
--- a/include/erasurecode/erasurecode.h
+++ b/include/erasurecode/erasurecode.h
@@ -68,12 +68,10 @@ struct ec_args {
int k; /* number of data fragments */
int m; /* number of parity fragments */
int w; /* word size, in bits (optional) */
+ int hd; /* Hamming distance (=m for Reed-Solomon) */
union {
struct {
- int hd; /* hamming distance (3 or 4) */
- } flat_xor_hd_args; /* args specific to XOR codes */
- struct {
uint64_t arg1; /* sample arg */
} null_args; /* args specific to the null codes */
struct {