1 /* Copyright 2014-present Facebook, Inc.
2  * Licensed under the Apache License, Version 2.0 */
3 
4 #include "watchman.h"
5 
6 std::unique_ptr<watchman_stream> w_stm_connect(
7     const char* path,
8     int timeoutms) {
9 #ifdef _WIN32
10   return w_stm_connect_named_pipe(path, timeoutms);
11 #else
12   return w_stm_connect_unix(path, timeoutms);
13 #endif
14 }
15