libwaku: exposing more features

- Allow to start or store discv5
- Expose lightpush request operation
- Expose list of connected and mesh peers
- Expose store client
This commit is contained in:
Ivan Folgueira Bande 2024-08-28 22:21:24 +02:00
parent 8f28992599
commit 9f8f156ceb
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7
1 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,12 @@ proc createPeerExchangeRequest*(
): ptr type T = ): ptr type T =
return T.createShared(PEER_EXCHANGE, "", "", 0, "", numPeers) return T.createShared(PEER_EXCHANGE, "", "", 0, "", numPeers)
proc createDiscV5StartRequest*(T: type DiscoveryRequest): ptr type T =
return T.createShared(START_DISCV5, "", "", 0, "")
proc createDiscV5StopRequest*(T: type DiscoveryRequest): ptr type T =
return T.createShared(STOP_DISCV5, "", "", 0, "")
proc destroyShared(self: ptr DiscoveryRequest) = proc destroyShared(self: ptr DiscoveryRequest) =
deallocShared(self[].enrTreeUrl) deallocShared(self[].enrTreeUrl)
deallocShared(self[].nameDnsServer) deallocShared(self[].nameDnsServer)