MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / NFD_OpenDialogN

Function NFD_OpenDialogN

extern/nfd/nfd_portal.cpp:1303–1327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301}
1302
1303nfdresult_t NFD_OpenDialogN(nfdnchar_t** outPath,
1304 const nfdnfilteritem_t* filterList,
1305 nfdfiltersize_t filterCount,
1306 const nfdnchar_t* defaultPath) {
1307 (void)defaultPath; // Default path not supported for portal backend
1308
1309 DBusMessage* msg;
1310 {
1311 const nfdresult_t res = NFD_DBus_OpenFile<false, false>(msg, filterList, filterCount);
1312 if (res != NFD_OKAY) {
1313 return res;
1314 }
1315 }
1316 DBusMessage_Guard msg_guard(msg);
1317
1318 const char* uri;
1319 {
1320 const nfdresult_t res = ReadResponseUrisSingle(msg, uri);
1321 if (res != NFD_OKAY) {
1322 return res;
1323 }
1324 }
1325
1326 return AllocAndCopyFilePath(uri, *outPath);
1327}
1328
1329nfdresult_t NFD_OpenDialogMultipleN(const nfdpathset_t** outPaths,
1330 const nfdnfilteritem_t* filterList,

Callers

nothing calls this directly

Calls 2

ReadResponseUrisSingleFunction · 0.85
AllocAndCopyFilePathFunction · 0.85

Tested by

no test coverage detected