GCC Code Coverage Report
Directory: ../src/ Exec Total Coverage
File: /home/node-core-coverage/node-core-coverage/workdir/node/out/../src/node_stat_watcher.h Lines: 0 1 0.0 %
Date: 2017-01-02 Branches: 0 0 0.0 %

Line Branch Exec Source
1
#ifndef SRC_NODE_STAT_WATCHER_H_
2
#define SRC_NODE_STAT_WATCHER_H_
3
4
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
5
6
#include "node.h"
7
#include "async-wrap.h"
8
#include "env.h"
9
#include "uv.h"
10
#include "v8.h"
11
12
namespace node {
13
14
class StatWatcher : public AsyncWrap {
15
 public:
16
  ~StatWatcher() override;
17
18
  static void Initialize(Environment* env, v8::Local<v8::Object> target);
19
20
 protected:
21
  StatWatcher(Environment* env, v8::Local<v8::Object> wrap);
22
23
  static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
24
  static void Start(const v8::FunctionCallbackInfo<v8::Value>& args);
25
  static void Stop(const v8::FunctionCallbackInfo<v8::Value>& args);
26
27
  size_t self_size() const override { return sizeof(*this); }
28
29
 private:
30
  static void Callback(uv_fs_poll_t* handle,
31
                       int status,
32
                       const uv_stat_t* prev,
33
                       const uv_stat_t* curr);
34
  void Stop();
35
36
  uv_fs_poll_t* watcher_;
37
};
38
39
}  // namespace node
40
41
#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
42
43
#endif  // SRC_NODE_STAT_WATCHER_H_