diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-08-15 13:41:42 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2018-08-15 13:43:01 +0100 |
commit | 6a783002e8b17995132fc6334b4e0900c36bf9a0 (patch) | |
tree | f94f63f95c6f9997553d31b46ca08743597b584b /test/test-loader.c | |
parent | b77ae8ab7d1ce435d8afd3c77613c5a56c477025 (diff) | |
download | libnslayout-6a783002e8b17995132fc6334b4e0900c36bf9a0.tar.gz libnslayout-6a783002e8b17995132fc6334b4e0900c36bf9a0.tar.bz2 |
Library: Use `nsl` as library namespace.
Diffstat (limited to 'test/test-loader.c')
-rw-r--r-- | test/test-loader.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/test-loader.c b/test/test-loader.c index 6d52691..cab08d6 100644 --- a/test/test-loader.c +++ b/test/test-loader.c @@ -19,15 +19,15 @@ #define UNUSED(x) (void)(x) #endif -static nslayout_error test_loader_nslayout_test_callback( - nslayout_layout *layout, +static nsl_error test_loader_nsl_test_callback( + nsl_layout *layout, void *pw, - nslayout_request *req) + nsl_request *req) { UNUSED(req); UNUSED(layout); UNUSED(pw); - return NSLAYOUT_OK; + return NSL_OK; } struct test_loader_buffer { @@ -293,8 +293,8 @@ static bool test_loader( css_media_type media, size_t chunk_size) { - nslayout_layout *layout = NULL; - nslayout_error error; + nsl_layout *layout = NULL; + nsl_error error; struct test_loader_ctx load_ctx; bool complete = false; bool ret = false; @@ -320,13 +320,13 @@ static bool test_loader( } printf("Creating nsl layout\n"); - error = nslayout_layout_create(load_ctx.doc, + error = nsl_layout_create(load_ctx.doc, load_ctx.css_ctx, &media, - test_loader_nslayout_test_callback, + test_loader_nsl_test_callback, NULL, &layout); - if (error != NSLAYOUT_OK) { + if (error != NSL_OK) { goto fail; } @@ -340,13 +340,13 @@ static bool test_loader( } printf("Destroying layout\n"); - error = nslayout_layout_destroy(layout); + error = nsl_layout_destroy(layout); layout = NULL; - ret = (error == NSLAYOUT_OK); + ret = (error == NSL_OK); fail: if (layout != NULL) { - nslayout_layout_destroy(layout); + nsl_layout_destroy(layout); } test_loader_css_fini(&load_ctx); dom_node_unref(load_ctx.doc); |