Cleanup of indexing API in order to simply the code, to leave the handling of indexin...
authorWolfgang Wourdeau <wsourdeau@inverse.ca>
Thu, 4 Aug 2011 13:54:13 +0000 (13:54 +0000)
committerWolfgang Wourdeau <wsourdeau@inverse.ca>
Thu, 4 Aug 2011 13:54:13 +0000 (13:54 +0000)
mapiproxy/libmapistore/tests/mapistore_test.c
testprogs/check_fasttransfer.c

index 6c3e2b06671cf7d29708a79473010151d88e68e7..5b913eac2ff9edc906a5917a1faeba3c712bce45 100644 (file)
@@ -87,13 +87,13 @@ int main(int argc, const char *argv[])
                exit (1);
        }
 
-       retval = mapistore_add_context(mstore_ctx, "sqlite:///tmp/test.db", -1, &context_id, &root_folder);
+       retval = mapistore_add_context(mstore_ctx, "openchange", "sqlite:///tmp/test.db", -1, &context_id, &root_folder);
        if (retval != MAPISTORE_SUCCESS) {
                DEBUG(0, ("%s\n", mapistore_errstr(retval)));
                exit (1);
        }
 
-       retval = mapistore_add_context(mstore_ctx, "sqlite:///tmp/test2.db", -1, &context_id2, &root_folder);
+       retval = mapistore_add_context(mstore_ctx, "openchange", "sqlite:///tmp/test2.db", -1, &context_id2, &root_folder);
        if (retval != MAPISTORE_SUCCESS) {
                DEBUG(0, ("%s\n", mapistore_errstr(retval)));
                exit (1);
@@ -102,7 +102,7 @@ int main(int argc, const char *argv[])
        DEBUG(0, ("Context ID: [1] = %d and [2] = %d\n", context_id, context_id2));
 
 
-       retval = mapistore_add_context(mstore_ctx, "fsocpf:///tmp/fsocpf", -1, &context_id3, &root_folder);
+       retval = mapistore_add_context(mstore_ctx, "openchange", "fsocpf:///tmp/fsocpf", -1, &context_id3, &root_folder);
        if (retval != MAPISTORE_SUCCESS) {
                DEBUG(0, ("%s\n", mapistore_errstr(retval)));
                exit (1);
index dd9d9d5397bd5611af9af020bf81088d6ab7eb8e..4289b75135b40192cf948f78ebc1ad19f26933b4 100644 (file)
@@ -397,7 +397,7 @@ int main(int argc, const char *argv[])
                        exit (1);
                }
 
-               retval = mapistore_add_context(output_ctx.mstore_ctx, root_folder, output_ctx.root_fid, &(output_ctx.mapistore_context_id), &output_ctx.root_folder);
+               retval = mapistore_add_context(output_ctx.mstore_ctx, "openchange", root_folder, output_ctx.root_fid, &(output_ctx.mapistore_context_id), &output_ctx.root_folder);
                if (retval != MAPISTORE_SUCCESS) {
                        DEBUG(0, ("%s\n", mapistore_errstr(retval)));
                        exit (1);