diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-07-13 19:22:48 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-07-13 19:26:23 -0700 |
commit | 6533759ba5060149886ed0a88ba8c9373f7bcdd7 (patch) | |
tree | 67aa2aee468d56e8d70ef3b8390ea985dea2f717 /test | |
parent | 06e221f6708d5515296801af2ae14d6ea33e837e (diff) | |
download | liberasurecode-6533759ba5060149886ed0a88ba8c9373f7bcdd7.tar.gz |
Frontend/backend API split, make EC handle int type
.. also introduce a map for backend method stub name
to backend library function names
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 2 | ||||
-rw-r--r-- | test/liberasurecode_test.c | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 5d82389..41763d3 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -15,6 +15,6 @@ check_PROGRAMS += alg_sig_test liberasurecode_test_SOURCES = liberasurecode_test.c liberasurecode_test_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/erasurecode -liberasurecode_test_LDFLAGS = -static -lgf_complete $(top_srcdir)/src/liberasurecode.la -ldl +liberasurecode_test_LDFLAGS = -lgf_complete $(top_srcdir)/src/liberasurecode.la -ldl -lpthread check_PROGRAMS += liberasurecode_test diff --git a/test/liberasurecode_test.c b/test/liberasurecode_test.c index 77344fc..6463ef2 100644 --- a/test/liberasurecode_test.c +++ b/test/liberasurecode_test.c @@ -2,12 +2,8 @@ int main() { - ec_backend_t backend; - - int err = liberasurecode_backend_create_instance(&backend, - "flat_xor_3", 10, 4, 0, 0, 0, 0); - if (backend) - liberasurecode_backend_destroy_instance(backend); + int desc = liberasurecode_instance_create("flat_xor_3", 10, 4, 0, NULL); + liberasurecode_instance_destroy(desc); return 0; } |