summaryrefslogtreecommitdiff
path: root/include/erasurecode/erasurecode_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erasurecode/erasurecode_helpers.h')
-rw-r--r--include/erasurecode/erasurecode_helpers.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/include/erasurecode/erasurecode_helpers.h b/include/erasurecode/erasurecode_helpers.h
index 33b26bd..3982b18 100644
--- a/include/erasurecode/erasurecode_helpers.h
+++ b/include/erasurecode/erasurecode_helpers.h
@@ -1,5 +1,5 @@
/*
- * <Copyright>
+ * Copyright 2014, Kevin Greenan, Tushar Gohda, All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,27 +34,6 @@
/* ==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~== */
-/**
- * liberasurecode fragment header definition
- *
- * Prevent the compiler from padding this by using the __packed__ keyword
- */
-
-#define LIBERASURECODE_FRAG_HEADER_MAGIC 0xb0c5ecc
-#define LIBERASURECODE_MAX_CHECKSUM_LEN 8 /* quad words */
-
-typedef struct __attribute__((__packed__)) fragment_header_s
-{
- fragment_metadata_t meta; /* 59 bytes */
- uint32_t magic; /* 4 bytes */
- uint32_t libec_version; /* 4 bytes */
- // We must be aligned to 16-byte boundaries
- // So, size this array accordingly
- uint8_t aligned_padding[13];
-} fragment_header_t;
-
-/* ==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~==~=*=~== */
-
#define talloc(type, num) (type *) malloc(sizeof(type) * (num))
/* Determine if an address is aligned to a particular boundary */