[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-nim] branch master updated: use ref object where we
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-nim] branch master updated: use ref object where we only use heap allocation |
Date: |
Sat, 04 Aug 2018 22:55:26 +0200 |
This is an automated email from the git hooks/post-receive script.
lurchi pushed a commit to branch master
in repository gnunet-nim.
The following commit(s) were added to refs/heads/master by this push:
new da708b6 use ref object where we only use heap allocation
da708b6 is described below
commit da708b639b0f74143b8181e27a8be4ed25fd3fd5
Author: lurchi <address@hidden>
AuthorDate: Sat Aug 4 22:55:09 2018 +0200
use ref object where we only use heap allocation
---
asynccadet.nim | 4 ++--
gnunet_application.nim | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/asynccadet.nim b/asynccadet.nim
index 8a7c8b3..70fe183 100644
--- a/asynccadet.nim
+++ b/asynccadet.nim
@@ -10,12 +10,12 @@ type
handle: ptr GNUNET_CADET_Handle
openPorts: seq[ref CadetPort]
- CadetPort* = object
+ CadetPort* = ref object
handle: ptr GNUNET_CADET_Port
channels*: FutureStream[ref CadetChannel]
activeChannels: seq[ref CadetChannel]
- CadetChannel* = object
+ CadetChannel* = ref object
handle: ptr GNUNET_CADET_Channel
peer: GNUNET_PeerIdentity
messages*: FutureStream[string]
diff --git a/gnunet_application.nim b/gnunet_application.nim
index bcad17b..a57c961 100644
--- a/gnunet_application.nim
+++ b/gnunet_application.nim
@@ -5,7 +5,7 @@ import gnunet_configuration_lib
import asyncdispatch, tables, logging
type
- GnunetApplication* = object
+ GnunetApplication* = ref object
timeoutUs: uint64
tasks: Table[ptr GNUNET_SCHEDULER_Task, ptr GNUNET_SCHEDULER_FdInfo]
schedulerDriver: GNUNET_SCHEDULER_Driver
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet-nim] branch master updated: use ref object where we only use heap allocation,
gnunet <=