- Create `Include/` folder for all main projects - Fix some issues here and there (found while moving things) - All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
19 lines
513 B
C++
19 lines
513 B
C++
#include "tt_app_selectiondialog.h"
|
|
#include <Tactility/app/selectiondialog/SelectionDialog.h>
|
|
|
|
extern "C" {
|
|
|
|
void tt_app_selectiondialog_start(const char* title, int argc, const char* argv[]) {
|
|
std::vector<std::string> list;
|
|
for (int i = 0; i < argc; i++) {
|
|
list.emplace_back(argv[i]);
|
|
}
|
|
tt::app::selectiondialog::start(title, list);
|
|
}
|
|
|
|
int32_t tt_app_selectiondialog_get_result_index(BundleHandle handle) {
|
|
return tt::app::selectiondialog::getResultIndex(*(tt::Bundle*)handle);
|
|
}
|
|
|
|
}
|