- public void add_chain_access(Access chain_access) {
- bindings.NetGraphMsgHandler_add_chain_access(this.ptr, chain_access == null ? 0 : chain_access.ptr);
- this.ptrs_to.add(chain_access);
- }
-
- /**
- * Take a read lock on the network_graph and return it in the C-bindings
- * newtype helper. This is likely only useful when called via the C
- * bindings as you can call `self.network_graph.read().unwrap()` in Rust
- * yourself.
- */
- public LockedNetworkGraph read_locked_graph() {
- long ret = bindings.NetGraphMsgHandler_read_locked_graph(this.ptr);
- LockedNetworkGraph ret_hu_conv = new LockedNetworkGraph(null, ret);
- ret_hu_conv.ptrs_to.add(this);
- return ret_hu_conv;
+ public void add_chain_access(Option_AccessZ chain_access) {
+ bindings.NetGraphMsgHandler_add_chain_access(this.ptr, chain_access.ptr);