diff --git a/examples/c/ADM_update_adhoc_storage.c b/examples/c/ADM_update_adhoc_storage.c index 2c58d640a85261097c8eb6f9e640d8a7f30dbcd7..383afbc1e59e193ba7d1a604268594e52af70dd5 100644 --- a/examples/c/ADM_update_adhoc_storage.c +++ b/examples/c/ADM_update_adhoc_storage.c @@ -118,7 +118,7 @@ main(int argc, char* argv[]) { } // We can now request the update to the server - if((ret = ADM_update_adhoc_storage(server, new_adhoc_ctx, adhoc_storage)) != + if((ret = ADM_update_adhoc_storage(server, adhoc_storage, new_adhoc_ctx)) != ADM_SUCCESS) { fprintf(stderr, "ADM_update_adhoc_storage() failed: %s\n", ADM_strerror(ret)); diff --git a/examples/cxx/ADM_update_adhoc_storage.cpp b/examples/cxx/ADM_update_adhoc_storage.cpp index a353d4578b55187550bd36fff0c5232777641d5c..a2905446f6500161c9e1a8535aaacf3f8171712c 100644 --- a/examples/cxx/ADM_update_adhoc_storage.cpp +++ b/examples/cxx/ADM_update_adhoc_storage.cpp @@ -63,8 +63,8 @@ main(int argc, char* argv[]) { server, name, admire::storage::type::gekkofs, adhoc_storage_ctx); - const auto ret = admire::update_adhoc_storage( - server, new_adhoc_storage_ctx, adhoc_storage); + const auto ret = admire::update_adhoc_storage(server, adhoc_storage, + new_adhoc_storage_ctx); if(!ret) { fmt::print(stderr, "FATAL: ADM_update_adhoc_storage() failed: {}\n", diff --git a/src/lib/admire.cpp b/src/lib/admire.cpp index 42c2263087286e0b648c27f4679a407a94b29422..5bb0dae06c905c6930f9eef1958d532dd00a8635 100644 --- a/src/lib/admire.cpp +++ b/src/lib/admire.cpp @@ -249,9 +249,8 @@ register_adhoc_storage(const server& srv, const std::string& name, } admire::error_code -update_adhoc_storage(const server& srv, - const adhoc_storage::ctx& adhoc_storage_ctx, - const adhoc_storage& adhoc_storage) { +update_adhoc_storage(const server& srv, const adhoc_storage& adhoc_storage, + const adhoc_storage::ctx& adhoc_storage_ctx) { return detail::update_adhoc_storage(srv, adhoc_storage_ctx, adhoc_storage); } diff --git a/src/lib/admire.h b/src/lib/admire.h index d0bf7cbb3ee97b0401e1ca3068907c76bedca669..2545d6c465b18ff5885afe46b2ff8dacc752fa0d 100644 --- a/src/lib/admire.h +++ b/src/lib/admire.h @@ -127,8 +127,8 @@ ADM_register_adhoc_storage(ADM_server_t server, const char* name, * successfully. */ ADM_return_t -ADM_update_adhoc_storage(ADM_server_t server, ADM_adhoc_context_t ctx, - ADM_storage_t adhoc_storage); +ADM_update_adhoc_storage(ADM_server_t server, ADM_storage_t adhoc_storage, + ADM_adhoc_context_t ctx); /** * Remove an already-registered adhoc storage system. diff --git a/src/lib/admire.hpp b/src/lib/admire.hpp index 7cd9045bf3670331999ac796b63327fddf32bb06..13ed1b3b18f14666ead863fc402a85b35f5b8c65 100644 --- a/src/lib/admire.hpp +++ b/src/lib/admire.hpp @@ -63,9 +63,8 @@ register_adhoc_storage(const server& srv, const std::string& name, const adhoc_storage::ctx& ctx); admire::error_code -update_adhoc_storage(const server& srv, - const adhoc_storage::ctx& adhoc_storage_ctx, - const adhoc_storage& adhoc_storage); +update_adhoc_storage(const server& srv, const adhoc_storage& adhoc_storage, + const adhoc_storage::ctx& adhoc_storage_ctx); admire::error_code remove_adhoc_storage(const server& srv, const adhoc_storage& adhoc_storage); diff --git a/src/lib/c_wrapper.cpp b/src/lib/c_wrapper.cpp index d4dd6aa15fbc9fe07a161f6ea0c0915bcdcbcb0a..e9a2e142942cc6d24618dd05039544f27972964d 100644 --- a/src/lib/c_wrapper.cpp +++ b/src/lib/c_wrapper.cpp @@ -101,8 +101,8 @@ ADM_register_adhoc_storage(ADM_server_t server, const char* name, } ADM_return_t -ADM_update_adhoc_storage(ADM_server_t server, ADM_adhoc_context_t ctx, - ADM_storage_t adhoc_storage) { +ADM_update_adhoc_storage(ADM_server_t server, ADM_storage_t adhoc_storage, + ADM_adhoc_context_t ctx) { const admire::server srv{server};