Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (42 sloc) 1.003 kB
60ce952 Add missing files
Evan Phoenix authored
1 #include <sys/utsname.h>
2 #include "vm.hpp"
3 #include "configuration.hpp"
4 #include "call_frame.hpp"
5 #include "util/bert.hpp"
6
7 namespace rubinius {
8 namespace agent {
9
10 class Tree;
11
12 class Output {
13 bert::IOWriter& writer_;
14 bert::Encoder<bert::IOWriter> encoder_;
15
16 public:
17 Output(bert::IOWriter& writer_)
18 : writer_(writer_)
19 , encoder_(writer_)
20 {}
21
22 bert::Encoder<bert::IOWriter>& e() {
23 return encoder_;
24 }
25
26 void error(const char* reason) {
27 e().write_tuple(2);
28 e().write_atom("error");
29 e().write_binary(reason);
30 }
31
32 void ok(const char* kind) {
33 e().write_tuple(3);
34 e().write_atom("ok");
35 e().write_atom(kind);
36 }
37 };
38
39 class VariableAccess {
40 Tree* root_;
41 Tree* system_;
42
43 public:
44 VariableAccess(STATE, SharedState& ss);
45
46 Tree* root() {
47 return root_;
48 }
49
3f2cf0a Add ruby dispatch support to the agent
Evan Phoenix authored
50 bool read_path(Output& output, const char* ipath);
51 bool set_path(Output& output, const char* ipath, bert::Value* val);
60ce952 Add missing files
Evan Phoenix authored
52 };
53 }}
Something went wrong with that request. Please try again.