| 1301 | } |
| 1302 | |
| 1303 | nfdresult_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 | |
| 1329 | nfdresult_t NFD_OpenDialogMultipleN(const nfdpathset_t** outPaths, |
| 1330 | const nfdnfilteritem_t* filterList, |
nothing calls this directly
no test coverage detected