|
liberasurecode 1.6.3
Erasure Code API library
|
#include <stdio.h>#include <stdlib.h>#include "erasurecode.h"#include "erasurecode_helpers.h"#include "erasurecode_helpers_ext.h"#include "erasurecode_backend.h"Go to the source code of this file.
Data Structures | |
| struct | shss_descriptor |
Macros | |
| #define | SHSS_LIB_VER_STR "1.0" |
| #define | SHSS_LIB_NAME "shss" |
| #define | SHSS_SO_NAME "libshss" LIBERASURECODE_SO_SUFFIX ".so.1" |
| #define | DEFAULT_W 128 |
| #define | METADATA 32 |
Typedefs | |
| typedef int(* | shss_encode_func) (char **, size_t, int, int, int, int, long long *) |
| typedef int(* | shss_decode_func) (char **, size_t, int *, int, int, int, int, int, long long *) |
| typedef int(* | shss_reconstruct_func) (char **, size_t, int *, int, int *, int, int, int, int, int, long long *) |
Functions | |
| static int | shss_encode (void *desc, char **data, char **parity, int blocksize) |
| static int | shss_decode (void *desc, char **data, char **parity, int *missing_idxs, int blocksize) |
| static int | shss_reconstruct (void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize) |
| static int | shss_fragments_needed (void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed) |
| static int | shss_element_size (void *desc) |
| Return the element-size, which is the number of bits stored on a given device, per codeword. | |
| static void * | shss_init (struct ec_backend_args *args, void *backend_sohandle) |
| static int | shss_exit (void *desc) |
| static bool | shss_is_compatible_with (uint32_t version) |
| static size_t | shss_get_backend_metadata_size (void *desc, int blocksize) |
Variables | |
| struct ec_backend | shss |
| struct ec_backend_op_stubs | shss_ops |
| struct ec_backend_common | backend_shss |
| struct ec_backend_op_stubs | shss_op_stubs |
| #define METADATA 32 |
Definition at line 71 of file shss.c.
Referenced by shss_get_backend_metadata_size().
| #define SHSS_SO_NAME "libshss" LIBERASURECODE_SO_SUFFIX ".so.1" |
| typedef int(* shss_decode_func) (char **, size_t, int *, int, int, int, int, int, long long *) |
| typedef int(* shss_encode_func) (char **, size_t, int, int, int, int, long long *) |
| typedef int(* shss_reconstruct_func) (char **, size_t, int *, int, int *, int, int, int, int, int, long long *) |
|
static |
Definition at line 104 of file shss.c.
References shss_descriptor::aes_bit_length, shss_descriptor::k, shss_descriptor::m, shss_descriptor::n, and shss_descriptor::ssdecode.
|
static |
|
static |
Definition at line 73 of file shss.c.
References shss_descriptor::aes_bit_length, shss_descriptor::k, shss_descriptor::m, shss_descriptor::n, and shss_descriptor::ssencode.
|
static |
Definition at line 180 of file shss.c.
References shss_descriptor::k, and shss_descriptor::n.
|
static |
|
static |
Definition at line 215 of file shss.c.
References shss_descriptor::aes_bit_length, DEFAULT_W, shss_descriptor::k, shss_descriptor::m, shss_descriptor::n, shss_descriptor::ssdecode, shss_descriptor::ssencode, shss_descriptor::ssreconst, and shss_descriptor::w.
|
static |
Definition at line 285 of file shss.c.
References backend_shss.
|
static |
Definition at line 141 of file shss.c.
References shss_descriptor::aes_bit_length, shss_descriptor::k, shss_descriptor::m, shss_descriptor::n, and shss_descriptor::ssreconst.
| struct ec_backend_common backend_shss |
Definition at line 43 of file shss.c.
Referenced by shss_is_compatible_with().
| struct ec_backend_op_stubs shss_op_stubs |