Changeset View
Changeset View
Standalone View
Standalone View
source/lib/sysdep/dir_watch.h
Show All 23 Lines | |||||
* portable directory change notification API. | * portable directory change notification API. | ||||
*/ | */ | ||||
#ifndef INCLUDED_DIR_WATCH | #ifndef INCLUDED_DIR_WATCH | ||||
#define INCLUDED_DIR_WATCH | #define INCLUDED_DIR_WATCH | ||||
#include "lib/os_path.h" | #include "lib/os_path.h" | ||||
namespace std { | |||||
template <typename T> | |||||
class vector; | |||||
template <typename T> | |||||
class shared_ptr; | |||||
} | |||||
struct DirWatch; | struct DirWatch; | ||||
typedef shared_ptr<DirWatch> PDirWatch; | typedef std::shared_ptr<DirWatch> PDirWatch; | ||||
/** | /** | ||||
* start watching a single directory for changes. | * start watching a single directory for changes. | ||||
* | * | ||||
* @param path (must end in slash) | * @param path (must end in slash) | ||||
* @param dirWatch opaque smart pointer to the watch state; used to | * @param dirWatch opaque smart pointer to the watch state; used to | ||||
* manage its lifetime (this is deemed more convenient than a | * manage its lifetime (this is deemed more convenient than a | ||||
* separate dir_watch_Remove interface). | * separate dir_watch_Remove interface). | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator