mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-30 16:47:48 +00:00
569 lines
35 KiB
C
569 lines
35 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v2/node -o nimcache/release/quicksim2/@mpeer_manager.nim.c.o nimcache/release/quicksim2/@mpeer_manager.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <sys/types.h>
|
|
#include <pthread.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q;
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
|
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
|
|
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
|
|
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
|
|
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
|
|
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
|
|
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
|
|
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
|
|
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
|
|
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
|
|
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
|
|
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
|
|
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
|
|
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
|
|
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
|
|
typedef struct tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ;
|
|
typedef struct tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw;
|
|
typedef struct tyObject_PeerStorecolonObjectType___0xdeL2ek1PXqqUpiq5g7Wg tyObject_PeerStorecolonObjectType___0xdeL2ek1PXqqUpiq5g7Wg;
|
|
typedef struct tyObject_AddressBook__kAUyYK7EV9b249bD2JMY1qyA tyObject_AddressBook__kAUyYK7EV9b249bD2JMY1qyA;
|
|
typedef struct tyObject_PeerBook__pqEY4AD7jtgtibGMYsCquQ tyObject_PeerBook__pqEY4AD7jtgtibGMYsCquQ;
|
|
typedef struct tyObject_Table__pGGeaOra9csl069baTSs3CJg tyObject_Table__pGGeaOra9csl069baTSs3CJg;
|
|
typedef struct tySequence__0pNp33hfens5jJ9aLEr0T1A tySequence__0pNp33hfens5jJ9aLEr0T1A;
|
|
typedef struct tySequence__FB9agtyJL9cs1Rualdi3dHzA tySequence__FB9agtyJL9cs1Rualdi3dHzA;
|
|
typedef struct tyObject_ProtoBook__psL19czZ3H9aw2rBjHOZybsg tyObject_ProtoBook__psL19czZ3H9aw2rBjHOZybsg;
|
|
typedef struct tyObject_PeerBook__rTNhgMi9bXER2Qzp3N5ylcg tyObject_PeerBook__rTNhgMi9bXER2Qzp3N5ylcg;
|
|
typedef struct tyObject_Table__Y0c2zaBMalZGAwyJIQOIWQ tyObject_Table__Y0c2zaBMalZGAwyJIQOIWQ;
|
|
typedef struct tySequence__ZS1ahAVt82upPJYTV8RknQ tySequence__ZS1ahAVt82upPJYTV8RknQ;
|
|
typedef struct tySequence__b9brGxu9b7EvJRcCNbtOaS1A tySequence__b9brGxu9b7EvJRcCNbtOaS1A;
|
|
typedef struct tyObject_KeyBook__THZbr4G6x2kFDEn9cY89cWPQ tyObject_KeyBook__THZbr4G6x2kFDEn9cY89cWPQ;
|
|
typedef struct tyObject_PeerBook__5kO7GSRQzMCQLN1FNlgc6g tyObject_PeerBook__5kO7GSRQzMCQLN1FNlgc6g;
|
|
typedef struct tyObject_Table__52v4sP86ruZliir3KafpPQ tyObject_Table__52v4sP86ruZliir3KafpPQ;
|
|
typedef struct tySequence__TwXs3G9bF9ad7BQkkskGRTCQ tySequence__TwXs3G9bF9ad7BQkkskGRTCQ;
|
|
typedef struct tySequence__QiiBaWgIbaLekyE7PaTeWA tySequence__QiiBaWgIbaLekyE7PaTeWA;
|
|
typedef struct tyObject_ConnectionBook__59bNvjvF0ZcfH4olo0X0Kig tyObject_ConnectionBook__59bNvjvF0ZcfH4olo0X0Kig;
|
|
typedef struct tyObject_PeerBook__B1w9bWaD4kAfqkdfMNPgCHg tyObject_PeerBook__B1w9bWaD4kAfqkdfMNPgCHg;
|
|
typedef struct tyObject_Table__HDUOEieUs1GSseLU5qS67Q tyObject_Table__HDUOEieUs1GSseLU5qS67Q;
|
|
typedef struct tySequence__9cAdNiuOt3vPbm6XF7oLMIw tySequence__9cAdNiuOt3vPbm6XF7oLMIw;
|
|
typedef struct tySequence__QPJgNlGfMe9bpcXiAlasCPg tySequence__QPJgNlGfMe9bpcXiAlasCPg;
|
|
typedef struct tyTuple__DoL6v1Q2bZcUIVTN9aDivzQ tyTuple__DoL6v1Q2bZcUIVTN9aDivzQ;
|
|
typedef struct tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct tyObject_HashSet__o1ej6dBUQnezVPAEZ8Ad9bA tyObject_HashSet__o1ej6dBUQnezVPAEZ8Ad9bA;
|
|
typedef struct tySequence__noYiMxJQyusfKGmZZR7Pzw tySequence__noYiMxJQyusfKGmZZR7Pzw;
|
|
typedef struct tyTuple__yM4OgBQGbTtxtw9cQruEBmQ tyTuple__yM4OgBQGbTtxtw9cQruEBmQ;
|
|
typedef struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg;
|
|
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw;
|
|
typedef struct tyTuple__lZ89bmeObpNgv1XXCg37auA tyTuple__lZ89bmeObpNgv1XXCg37auA;
|
|
typedef struct tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA;
|
|
typedef struct tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg;
|
|
typedef struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA;
|
|
typedef struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA;
|
|
typedef struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ;
|
|
typedef struct tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q;
|
|
typedef struct tyTuple__HWxN9b9av4GWQkqrakko2iBw tyTuple__HWxN9b9av4GWQkqrakko2iBw;
|
|
typedef struct tyTuple__Woh9a244KremWsbQsGWkAnQ tyTuple__Woh9a244KremWsbQsGWkAnQ;
|
|
typedef struct tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw;
|
|
typedef struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA;
|
|
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw;
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
|
|
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
|
|
TNimType* typ;
|
|
};
|
|
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
|
|
};
|
|
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
|
|
NI cap;
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
|
|
};
|
|
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
|
|
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
|
|
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
|
|
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
|
|
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
|
|
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
|
|
};
|
|
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
|
|
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
|
|
NI key;
|
|
NI upperBound;
|
|
NI level;
|
|
};
|
|
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
|
|
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
|
|
NI Field1;
|
|
};
|
|
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
|
|
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
|
|
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
|
|
};
|
|
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
|
|
NI maxLargeObj;
|
|
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
|
|
NU32 flBitmap;
|
|
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
|
|
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
|
|
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
|
|
NI currMem;
|
|
NI maxMem;
|
|
NI freeMem;
|
|
NI occ;
|
|
NI lastSize;
|
|
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
|
|
NIM_BOOL locked;
|
|
NIM_BOOL blockChunkSizeIncrease;
|
|
NI nextChunkSize;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
|
|
NI allocCounter;
|
|
NI deallocCounter;
|
|
};
|
|
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
|
|
NI cycleCollections;
|
|
NI maxThreshold;
|
|
NI maxStackSize;
|
|
NI maxStackCells;
|
|
NI cycleTableSize;
|
|
NI64 maxPause;
|
|
};
|
|
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
|
|
NI max;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
|
|
};
|
|
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
|
|
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
|
|
pthread_mutex_t lock;
|
|
};
|
|
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
|
|
NI cycleThreshold;
|
|
NI zctThreshold;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
|
|
NI recGcLock;
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
|
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
|
|
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
|
|
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
|
|
NI gcThreadId;
|
|
};
|
|
struct RootObj {TNimType* m_type;};
|
|
struct tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA { RootObj Sup;tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ* switch_0;
|
|
tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw* peerStore;
|
|
};
|
|
struct tyObject_Table__pGGeaOra9csl069baTSs3CJg {tySequence__0pNp33hfens5jJ9aLEr0T1A* data;
|
|
NI counter;
|
|
};
|
|
struct tyObject_PeerBook__pqEY4AD7jtgtibGMYsCquQ { RootObj Sup;tyObject_Table__pGGeaOra9csl069baTSs3CJg book;
|
|
tySequence__FB9agtyJL9cs1Rualdi3dHzA* changeHandlers;
|
|
};
|
|
struct tyObject_AddressBook__kAUyYK7EV9b249bD2JMY1qyA { tyObject_PeerBook__pqEY4AD7jtgtibGMYsCquQ Sup;};
|
|
struct tyObject_Table__Y0c2zaBMalZGAwyJIQOIWQ {tySequence__ZS1ahAVt82upPJYTV8RknQ* data;
|
|
NI counter;
|
|
};
|
|
struct tyObject_PeerBook__rTNhgMi9bXER2Qzp3N5ylcg { RootObj Sup;tyObject_Table__Y0c2zaBMalZGAwyJIQOIWQ book;
|
|
tySequence__b9brGxu9b7EvJRcCNbtOaS1A* changeHandlers;
|
|
};
|
|
struct tyObject_ProtoBook__psL19czZ3H9aw2rBjHOZybsg { tyObject_PeerBook__rTNhgMi9bXER2Qzp3N5ylcg Sup;};
|
|
struct tyObject_Table__52v4sP86ruZliir3KafpPQ {tySequence__TwXs3G9bF9ad7BQkkskGRTCQ* data;
|
|
NI counter;
|
|
};
|
|
struct tyObject_PeerBook__5kO7GSRQzMCQLN1FNlgc6g { RootObj Sup;tyObject_Table__52v4sP86ruZliir3KafpPQ book;
|
|
tySequence__QiiBaWgIbaLekyE7PaTeWA* changeHandlers;
|
|
};
|
|
struct tyObject_KeyBook__THZbr4G6x2kFDEn9cY89cWPQ { tyObject_PeerBook__5kO7GSRQzMCQLN1FNlgc6g Sup;};
|
|
struct tyObject_PeerStorecolonObjectType___0xdeL2ek1PXqqUpiq5g7Wg { RootObj Sup;tyObject_AddressBook__kAUyYK7EV9b249bD2JMY1qyA addressBook;
|
|
tyObject_ProtoBook__psL19czZ3H9aw2rBjHOZybsg protoBook;
|
|
tyObject_KeyBook__THZbr4G6x2kFDEn9cY89cWPQ keyBook;
|
|
};
|
|
struct tyObject_Table__HDUOEieUs1GSseLU5qS67Q {tySequence__9cAdNiuOt3vPbm6XF7oLMIw* data;
|
|
NI counter;
|
|
};
|
|
struct tyObject_PeerBook__B1w9bWaD4kAfqkdfMNPgCHg { RootObj Sup;tyObject_Table__HDUOEieUs1GSseLU5qS67Q book;
|
|
tySequence__QPJgNlGfMe9bpcXiAlasCPg* changeHandlers;
|
|
};
|
|
struct tyObject_ConnectionBook__59bNvjvF0ZcfH4olo0X0Kig { tyObject_PeerBook__B1w9bWaD4kAfqkdfMNPgCHg Sup;};
|
|
struct tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw { tyObject_PeerStorecolonObjectType___0xdeL2ek1PXqqUpiq5g7Wg Sup;tyObject_ConnectionBook__59bNvjvF0ZcfH4olo0X0Kig connectionBook;
|
|
};
|
|
typedef NU8 tyEnum_Connectedness__iDFxVyVC6AVm9aJUnmmoakw;
|
|
struct tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
|
|
};
|
|
struct tyObject_HashSet__o1ej6dBUQnezVPAEZ8Ad9bA {tySequence__noYiMxJQyusfKGmZZR7Pzw* data;
|
|
NI counter;
|
|
};
|
|
struct tyTuple__DoL6v1Q2bZcUIVTN9aDivzQ {
|
|
NI Field0;
|
|
tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw Field1;
|
|
tyObject_HashSet__o1ej6dBUQnezVPAEZ8Ad9bA Field2;
|
|
};
|
|
typedef struct {
|
|
N_NIMCALL_PTR(void, ClP_0) (tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw peerId, tyObject_HashSet__o1ej6dBUQnezVPAEZ8Ad9bA entry, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__B5dRbjM9byT1fQExdIoKGFg;
|
|
struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg {tySequence__4eRCaZmrYLLw2k30GPTiMw* data;
|
|
NI counter;
|
|
};
|
|
struct tyTuple__yM4OgBQGbTtxtw9cQruEBmQ {
|
|
NI Field0;
|
|
tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw Field1;
|
|
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg Field2;
|
|
};
|
|
typedef struct {
|
|
N_NIMCALL_PTR(void, ClP_0) (tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw peerId, tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg entry, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__WIBK8fdAEsN75BnF51wU2g;
|
|
typedef NU8 tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg;
|
|
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
|
|
struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
|
|
};
|
|
typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
|
|
struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
|
|
};
|
|
struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA {tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ data;
|
|
};
|
|
struct tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA {tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg scheme;
|
|
union{
|
|
struct {tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg* rsakey;
|
|
} _scheme_1;
|
|
struct {tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA edkey;
|
|
} _scheme_2;
|
|
struct {tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA skkey;
|
|
} _scheme_3;
|
|
struct {tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* eckey;
|
|
} _scheme_4;
|
|
};
|
|
};
|
|
struct tyTuple__lZ89bmeObpNgv1XXCg37auA {
|
|
NI Field0;
|
|
tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw Field1;
|
|
tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA Field2;
|
|
};
|
|
typedef struct {
|
|
N_NIMCALL_PTR(void, ClP_0) (tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw peerId, tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* entry, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__VqGZNzVBDtkAI63TApvBMQ;
|
|
struct tyTuple__HWxN9b9av4GWQkqrakko2iBw {
|
|
NI Field0;
|
|
tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw Field1;
|
|
tyEnum_Connectedness__iDFxVyVC6AVm9aJUnmmoakw Field2;
|
|
};
|
|
typedef struct {
|
|
N_NIMCALL_PTR(void, ClP_0) (tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw peerId, tyEnum_Connectedness__iDFxVyVC6AVm9aJUnmmoakw entry, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__K19cGD9aCEal9cQCqF65XPYzQ;
|
|
struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
|
|
NI offset;
|
|
};
|
|
struct tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw {tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA data;
|
|
};
|
|
struct tyTuple__Woh9a244KremWsbQsGWkAnQ {
|
|
NI Field0;
|
|
tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw Field1;
|
|
};
|
|
struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw {
|
|
NI Field0;
|
|
NimStringDesc* Field1;
|
|
};
|
|
struct tySequence__0pNp33hfens5jJ9aLEr0T1A { TGenericSeq Sup; tyTuple__DoL6v1Q2bZcUIVTN9aDivzQ data[SEQ_DECL_SIZE];};struct tySequence__FB9agtyJL9cs1Rualdi3dHzA { TGenericSeq Sup; tyProc__B5dRbjM9byT1fQExdIoKGFg data[SEQ_DECL_SIZE];};struct tySequence__ZS1ahAVt82upPJYTV8RknQ { TGenericSeq Sup; tyTuple__yM4OgBQGbTtxtw9cQruEBmQ data[SEQ_DECL_SIZE];};struct tySequence__b9brGxu9b7EvJRcCNbtOaS1A { TGenericSeq Sup; tyProc__WIBK8fdAEsN75BnF51wU2g data[SEQ_DECL_SIZE];};struct tySequence__TwXs3G9bF9ad7BQkkskGRTCQ { TGenericSeq Sup; tyTuple__lZ89bmeObpNgv1XXCg37auA data[SEQ_DECL_SIZE];};struct tySequence__QiiBaWgIbaLekyE7PaTeWA { TGenericSeq Sup; tyProc__VqGZNzVBDtkAI63TApvBMQ data[SEQ_DECL_SIZE];};struct tySequence__9cAdNiuOt3vPbm6XF7oLMIw { TGenericSeq Sup; tyTuple__HWxN9b9av4GWQkqrakko2iBw data[SEQ_DECL_SIZE];};struct tySequence__QPJgNlGfMe9bpcXiAlasCPg { TGenericSeq Sup; tyProc__K19cGD9aCEal9cQCqF65XPYzQ data[SEQ_DECL_SIZE];};struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__noYiMxJQyusfKGmZZR7Pzw { TGenericSeq Sup; tyTuple__Woh9a244KremWsbQsGWkAnQ data[SEQ_DECL_SIZE];};struct tySequence__4eRCaZmrYLLw2k30GPTiMw { TGenericSeq Sup; tyTuple__QeWl6B6ffS4pU6WWrtcrDw data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, TM__V9cuuwUMu9cKSCZMEYsE5hPA_2)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw*, newCounter__aCN0px5Tq3H2b76ZI5TVlg)(NimStringDesc* name_0, NimStringDesc* help, NimStringDesc** labels, NI labelsLen_0, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry, NF sampleRate);
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_NIMCALL(void, Marker_tyRef__9b7IC8lbTqTLKCqk5yYcooA)(void* p, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__mAwL2D2EWMuWoFpTGy9aepg)(void* p, NI op);
|
|
extern TNimType NTI__1zvu7qZyvvdj9bFNfopFZvQ_;
|
|
STRING_LITERAL(TM__V9cuuwUMu9cKSCZMEYsE5hPA_3, "waku_peers_dials", 16);
|
|
STRING_LITERAL(TM__V9cuuwUMu9cKSCZMEYsE5hPA_4, "Number of peer dials", 20);
|
|
STRING_LITERAL(TM__V9cuuwUMu9cKSCZMEYsE5hPA_6, "outcome", 7);
|
|
static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__V9cuuwUMu9cKSCZMEYsE5hPA_5 = {((NimStringDesc*) &TM__V9cuuwUMu9cKSCZMEYsE5hPA_6)}
|
|
;
|
|
extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_;
|
|
N_LIB_PRIVATE TNimType NTI__EXZUwC4ltfxJCp69c4oOLbA_;
|
|
extern TNimType NTI__sFoHz9btyLyHVx29cOlB1cFw_;
|
|
extern TNimType NTI__0xdeL2ek1PXqqUpiq5g7Wg_;
|
|
N_LIB_PRIVATE TNimType NTI__9cg8as779aYCsbPM3IIeUxYw_;
|
|
N_LIB_PRIVATE TNimType NTI__iDFxVyVC6AVm9aJUnmmoakw_;
|
|
extern TNimType NTI__B1w9bWaD4kAfqkdfMNPgCHg_;
|
|
N_LIB_PRIVATE TNimType NTI__59bNvjvF0ZcfH4olo0X0Kig_;
|
|
N_LIB_PRIVATE TNimType NTI__9b7IC8lbTqTLKCqk5yYcooA_;
|
|
N_LIB_PRIVATE TNimType NTI__mAwL2D2EWMuWoFpTGy9aepg_;
|
|
N_LIB_PRIVATE tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* waku_peers_dials__ErNQBWVchkBvQri7z9amp9ag;
|
|
extern tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* defaultRegistry__io1tPp0SUJ9acKTx5nDy47A;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
extern TNimType* nimTypeRoot;
|
|
static N_NIMCALL(void, TM__V9cuuwUMu9cKSCZMEYsE5hPA_2)(void) {
|
|
nimGCvisit((void*)waku_peers_dials__ErNQBWVchkBvQri7z9amp9ag, 0);}
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
|
|
}
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src) {
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!(((*dest) == NIM_NIL))) goto LA8_;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*dest) = src;}
|
|
static N_NIMCALL(void, Marker_tyRef__9b7IC8lbTqTLKCqk5yYcooA)(void* p, NI op) {
|
|
tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw* a;
|
|
a = (tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw*)p;
|
|
nimGCvisit((void*)(*a).Sup.addressBook.Sup.book.data, op); nimGCvisit((void*)(*a).Sup.addressBook.Sup.changeHandlers, op); nimGCvisit((void*)(*a).Sup.protoBook.Sup.book.data, op); nimGCvisit((void*)(*a).Sup.protoBook.Sup.changeHandlers, op); nimGCvisit((void*)(*a).Sup.keyBook.Sup.book.data, op); nimGCvisit((void*)(*a).Sup.keyBook.Sup.changeHandlers, op); nimGCvisit((void*)(*a).connectionBook.Sup.book.data, op); nimGCvisit((void*)(*a).connectionBook.Sup.changeHandlers, op);}
|
|
static N_NIMCALL(void, Marker_tyRef__mAwL2D2EWMuWoFpTGy9aepg)(void* p, NI op) {
|
|
tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA* a;
|
|
a = (tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA*)p;
|
|
nimGCvisit((void*)(*a).switch_0, op); nimGCvisit((void*)(*a).peerStore, op);}
|
|
N_LIB_PRIVATE N_NIMCALL(void, waku_peer_managerInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
{
|
|
nimRegisterGlobalMarker(TM__V9cuuwUMu9cKSCZMEYsE5hPA_2);
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/waku/v2/node/peer_manager.nim"
|
|
|
|
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&waku_peers_dials__ErNQBWVchkBvQri7z9amp9ag), newCounter__aCN0px5Tq3H2b76ZI5TVlg(((NimStringDesc*) &TM__V9cuuwUMu9cKSCZMEYsE5hPA_3), ((NimStringDesc*) &TM__V9cuuwUMu9cKSCZMEYsE5hPA_4), TM__V9cuuwUMu9cKSCZMEYsE5hPA_5, 1, defaultRegistry__io1tPp0SUJ9acKTx5nDy47A, 1.0000000000000000e+00));}
|
|
}
|
|
|
|
N_LIB_PRIVATE N_NIMCALL(void, waku_peer_managerDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__V9cuuwUMu9cKSCZMEYsE5hPA_7_2[2];
|
|
static TNimNode* TM__V9cuuwUMu9cKSCZMEYsE5hPA_8_4[4];
|
|
NI TM__V9cuuwUMu9cKSCZMEYsE5hPA_10;
|
|
static char* NIM_CONST TM__V9cuuwUMu9cKSCZMEYsE5hPA_9[4] = {
|
|
"NotConnected",
|
|
"CannotConnect",
|
|
"CanConnect",
|
|
"Connected"};
|
|
static TNimNode TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[10];NTI__EXZUwC4ltfxJCp69c4oOLbA_.size = sizeof(tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA);
|
|
NTI__EXZUwC4ltfxJCp69c4oOLbA_.kind = 17;
|
|
NTI__EXZUwC4ltfxJCp69c4oOLbA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
|
|
NTI__EXZUwC4ltfxJCp69c4oOLbA_.name = "PeerManager:ObjectType";
|
|
NTI__EXZUwC4ltfxJCp69c4oOLbA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__EXZUwC4ltfxJCp69c4oOLbA_;
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_7_2[0] = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[1];
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[1].kind = 1;
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[1].offset = offsetof(tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA, switch_0);
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[1].typ = (&NTI__sFoHz9btyLyHVx29cOlB1cFw_);
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[1].name = "switch";
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_7_2[1] = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[2];
|
|
NTI__9cg8as779aYCsbPM3IIeUxYw_.size = sizeof(tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw);
|
|
NTI__9cg8as779aYCsbPM3IIeUxYw_.kind = 17;
|
|
NTI__9cg8as779aYCsbPM3IIeUxYw_.base = (&NTI__0xdeL2ek1PXqqUpiq5g7Wg_);
|
|
NTI__9cg8as779aYCsbPM3IIeUxYw_.name = "WakuPeerStore:ObjectType";
|
|
NTI__9cg8as779aYCsbPM3IIeUxYw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__9cg8as779aYCsbPM3IIeUxYw_;
|
|
NTI__iDFxVyVC6AVm9aJUnmmoakw_.size = sizeof(tyEnum_Connectedness__iDFxVyVC6AVm9aJUnmmoakw);
|
|
NTI__iDFxVyVC6AVm9aJUnmmoakw_.kind = 14;
|
|
NTI__iDFxVyVC6AVm9aJUnmmoakw_.base = 0;
|
|
NTI__iDFxVyVC6AVm9aJUnmmoakw_.flags = 3;
|
|
NTI__iDFxVyVC6AVm9aJUnmmoakw_.name = "Connectedness";
|
|
NTI__iDFxVyVC6AVm9aJUnmmoakw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__iDFxVyVC6AVm9aJUnmmoakw_;
|
|
for (TM__V9cuuwUMu9cKSCZMEYsE5hPA_10 = 0; TM__V9cuuwUMu9cKSCZMEYsE5hPA_10 < 4; TM__V9cuuwUMu9cKSCZMEYsE5hPA_10++) {
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[TM__V9cuuwUMu9cKSCZMEYsE5hPA_10+4].kind = 1;
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[TM__V9cuuwUMu9cKSCZMEYsE5hPA_10+4].offset = TM__V9cuuwUMu9cKSCZMEYsE5hPA_10;
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[TM__V9cuuwUMu9cKSCZMEYsE5hPA_10+4].name = TM__V9cuuwUMu9cKSCZMEYsE5hPA_9[TM__V9cuuwUMu9cKSCZMEYsE5hPA_10];
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_8_4[TM__V9cuuwUMu9cKSCZMEYsE5hPA_10] = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[TM__V9cuuwUMu9cKSCZMEYsE5hPA_10+4];
|
|
}
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[8].len = 4; TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[8].kind = 2; TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[8].sons = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_8_4[0];
|
|
NTI__iDFxVyVC6AVm9aJUnmmoakw_.node = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[8];
|
|
NTI__59bNvjvF0ZcfH4olo0X0Kig_.size = sizeof(tyObject_ConnectionBook__59bNvjvF0ZcfH4olo0X0Kig);
|
|
NTI__59bNvjvF0ZcfH4olo0X0Kig_.kind = 17;
|
|
NTI__59bNvjvF0ZcfH4olo0X0Kig_.base = (&NTI__B1w9bWaD4kAfqkdfMNPgCHg_);
|
|
NTI__59bNvjvF0ZcfH4olo0X0Kig_.name = "ConnectionBook";
|
|
NTI__59bNvjvF0ZcfH4olo0X0Kig_.nextType = nimTypeRoot; nimTypeRoot=&NTI__59bNvjvF0ZcfH4olo0X0Kig_;
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[9].len = 0; TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[9].kind = 2;
|
|
NTI__59bNvjvF0ZcfH4olo0X0Kig_.node = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[9];
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[3].kind = 1;
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[3].offset = offsetof(tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw, connectionBook);
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[3].typ = (&NTI__59bNvjvF0ZcfH4olo0X0Kig_);
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[3].name = "connectionBook";
|
|
NTI__9cg8as779aYCsbPM3IIeUxYw_.node = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[3];
|
|
NTI__9b7IC8lbTqTLKCqk5yYcooA_.size = sizeof(tyObject_WakuPeerStorecolonObjectType___9cg8as779aYCsbPM3IIeUxYw*);
|
|
NTI__9b7IC8lbTqTLKCqk5yYcooA_.kind = 22;
|
|
NTI__9b7IC8lbTqTLKCqk5yYcooA_.base = (&NTI__9cg8as779aYCsbPM3IIeUxYw_);
|
|
NTI__9b7IC8lbTqTLKCqk5yYcooA_.name = "WakuPeerStore";
|
|
NTI__9b7IC8lbTqTLKCqk5yYcooA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__9b7IC8lbTqTLKCqk5yYcooA_;
|
|
NTI__9b7IC8lbTqTLKCqk5yYcooA_.marker = Marker_tyRef__9b7IC8lbTqTLKCqk5yYcooA;
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[2].kind = 1;
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[2].offset = offsetof(tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA, peerStore);
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[2].typ = (&NTI__9b7IC8lbTqTLKCqk5yYcooA_);
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[2].name = "peerStore";
|
|
TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[0].len = 2; TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[0].kind = 2; TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[0].sons = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_7_2[0];
|
|
NTI__EXZUwC4ltfxJCp69c4oOLbA_.node = &TM__V9cuuwUMu9cKSCZMEYsE5hPA_0[0];
|
|
NTI__mAwL2D2EWMuWoFpTGy9aepg_.size = sizeof(tyObject_PeerManagercolonObjectType___EXZUwC4ltfxJCp69c4oOLbA*);
|
|
NTI__mAwL2D2EWMuWoFpTGy9aepg_.kind = 22;
|
|
NTI__mAwL2D2EWMuWoFpTGy9aepg_.base = (&NTI__EXZUwC4ltfxJCp69c4oOLbA_);
|
|
NTI__mAwL2D2EWMuWoFpTGy9aepg_.name = "PeerManager";
|
|
NTI__mAwL2D2EWMuWoFpTGy9aepg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__mAwL2D2EWMuWoFpTGy9aepg_;
|
|
NTI__mAwL2D2EWMuWoFpTGy9aepg_.marker = Marker_tyRef__mAwL2D2EWMuWoFpTGy9aepg;
|
|
}
|
|
|