PassengerAppType passenger_app_type_detector_check_document_root(PassengerAppTypeDetector *_detector, const char *documentRoot, unsigned int len, int resolveFirstSymlink) { AppTypeDetector *detector = (AppTypeDetector *) _detector; return detector->checkDocumentRoot(StaticString(documentRoot, len), resolveFirstSymlink); }
PassengerAppType pp_app_type_detector_check_document_root(PP_AppTypeDetector *_detector, const char *documentRoot, unsigned int len, int resolveFirstSymlink, PP_Error *error) { AppTypeDetector *detector = (AppTypeDetector *) _detector; try { return detector->checkDocumentRoot(StaticString(documentRoot, len), resolveFirstSymlink); } catch (const std::exception &e) { pp_error_set(e, error); return PAT_ERROR; } }