Commit c94bd4d4 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Merge branch...

Merge branch 'amiranda/78-there-s-no-way-to-select-the-adhoc-storage-type-when-calling-register_adhoc_storage' into 'main'

Resolve "There's no way to select the adhoc storage type when calling `register_adhoc_storage`"

This MR adds a `type` argument both to `ADM_register_adhoc_storage()` and 
`admire::register_adhoc_storage()` so that client code can properly select
the type of the instance to be registered.

Closes #78

See merge request !53
parents 4308a673 347294d9
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -71,8 +71,8 @@ main(int argc, char* argv[]) {
    const char* name = "adhoc_storage_42";

    ADM_storage_t adhoc_storage;
    ADM_return_t ret =
            ADM_register_adhoc_storage(server, name, ctx, &adhoc_storage);
    ADM_return_t ret = ADM_register_adhoc_storage(
            server, name, ADM_STORAGE_GEKKOFS, ctx, &adhoc_storage);

    if(ret != ADM_SUCCESS) {
        fprintf(stdout, "ADM_register_adhoc_storage() remote procedure not "
+2 −2
Original line number Diff line number Diff line
@@ -67,8 +67,8 @@ main(int argc, char* argv[]) {
    const char* name = "adhoc_storage_42";

    ADM_storage_t adhoc_storage;
    ADM_return_t ret =
            ADM_register_adhoc_storage(server, name, ctx, &adhoc_storage);
    ADM_return_t ret = ADM_register_adhoc_storage(
            server, name, ADM_STORAGE_GEKKOFS, ctx, &adhoc_storage);

    if(ret != ADM_SUCCESS) {
        fprintf(stdout,
+2 −2
Original line number Diff line number Diff line
@@ -72,8 +72,8 @@ main(int argc, char* argv[]) {
    const char* name = "adhoc_storage_42";

    ADM_storage_t adhoc_storage;
    ADM_return_t ret =
            ADM_register_adhoc_storage(server, name, ctx, &adhoc_storage);
    ADM_return_t ret = ADM_register_adhoc_storage(
            server, name, ADM_STORAGE_GEKKOFS, ctx, &adhoc_storage);

    if(ret != ADM_SUCCESS) {
        fprintf(stdout,
+2 −2
Original line number Diff line number Diff line
@@ -63,8 +63,8 @@ main(int argc, char* argv[]) {
    const char* name = "adhoc_storage_42";

    ADM_storage_t adhoc_storage;
    ADM_return_t ret =
            ADM_register_adhoc_storage(server, name, ctx, &adhoc_storage);
    ADM_return_t ret = ADM_register_adhoc_storage(
            server, name, ADM_STORAGE_GEKKOFS, ctx, &adhoc_storage);

    if(ret != ADM_SUCCESS) {
        fprintf(stdout,
+2 −2
Original line number Diff line number Diff line
@@ -68,8 +68,8 @@ main(int argc, char* argv[]) {
    const char* name = "adhoc_storage_42";

    ADM_storage_t adhoc_storage;
    ADM_return_t ret =
            ADM_register_adhoc_storage(server, name, ctx, &adhoc_storage);
    ADM_return_t ret = ADM_register_adhoc_storage(
            server, name, ADM_STORAGE_GEKKOFS, ctx, &adhoc_storage);

    if(ret != ADM_SUCCESS) {
        fprintf(stdout,
Loading