Skip to content

Comments

Extract get registered sync roots#190

Merged
dajimenezriv-internxt merged 21 commits intomasterfrom
extract-get-registered-sync-roots
Sep 17, 2025
Merged

Extract get registered sync roots#190
dajimenezriv-internxt merged 21 commits intomasterfrom
extract-get-registered-sync-roots

Conversation

@dajimenezriv-internxt
Copy link
Contributor

No description provided.

@dajimenezriv-internxt dajimenezriv-internxt self-assigned this Sep 15, 2025
@@ -0,0 +1,28 @@
#include "stdafx.h"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function returns an array of SyncRoots. We obtain them from windows using winrt and iterate them obtaining their info.

}

napi_value get_registered_sync_roots_wrapper(napi_env env, napi_callback_info args) {
std::vector<SyncRoots> roots = get_registered_sync_roots();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we just parse the sync roots obtained before to a napi vector that javascript can understand.

if (contextBuffer) {
sr.context = winrt::CryptographicBuffer::ConvertBinaryToString(winrt::BinaryStringEncoding::Utf8, contextBuffer).c_str();
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously here we were filtering by context using #inxt#, however now we do this filter in javascript using the displayName and the path instead.

cg-shokworks
cg-shokworks previously approved these changes Sep 16, 2025
Base automatically changed from refactor-register-sync-root to master September 17, 2025 13:45
@dajimenezriv-internxt dajimenezriv-internxt dismissed cg-shokworks’s stale review September 17, 2025 13:45

The base branch was changed.

@dajimenezriv-internxt dajimenezriv-internxt merged commit c05a8aa into master Sep 17, 2025
1 check passed
@dajimenezriv-internxt dajimenezriv-internxt deleted the extract-get-registered-sync-roots branch September 17, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants