summaryrefslogtreecommitdiffstats
path: root/src/Port.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/Port.vala')
-rw-r--r--src/Port.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Port.vala b/src/Port.vala
index ae3980d..6c33383 100644
--- a/src/Port.vala
+++ b/src/Port.vala
@@ -4,7 +4,7 @@ namespace Eva {
public uint id {get; construct;}
public uint creation {get; construct;}
- public Port(Erl.Port port) {
+ internal Port(Erl.Port port) {
this.create(binary_to_string(port.node, Erl.MAXATOMLEN), port.id, port.creation);
}
@@ -29,7 +29,7 @@ namespace Eva {
return (node == p.node && id == p.id && creation == p.creation);
}
- public void encode(Erl.Buffer buffer) {
+ internal void encode(Buffer buffer) {
Erl.Port port = Erl.Port();
char[]? nodedata = string_to_binary(node);
assert(nodedata != null);
@@ -40,7 +40,7 @@ namespace Eva {
port.id = id;
port.creation = creation;
- buffer.encode_port(port);
+ buffer.buffer.encode_port(port);
}
}
}