X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient.h;h=ebe41fe903f752ee261e14cd18edd51e7042adad;hb=90e14dc985628e0b0f86e604d511039d302dc956;hp=af1ff2081ee2cc14f2318aba1fb57fad4ddef758;hpb=8fd8212bcd16f2b53fbedff2a9b9a4e8c15b9695;p=silc.git diff --git a/lib/silcclient/client.h b/lib/silcclient/client.h index af1ff208..ebe41fe9 100644 --- a/lib/silcclient/client.h +++ b/lib/silcclient/client.h @@ -43,6 +43,7 @@ typedef struct SilcChannelPrivateKeyStruct *SilcChannelPrivateKey; /* Internal client entry context */ typedef struct SilcClientEntryInternalStruct { + void *prv_waiter; /* Private message packet waiter */ SilcRwLock lock; /* Read/write lock */ SilcCipher send_key; /* Private message key for sending */ SilcCipher receive_key; /* Private message key for receiving */ @@ -59,7 +60,9 @@ typedef struct SilcClientEntryInternalStruct { unsigned int prv_resp : 1; /* TRUE if we are responder when using private message keys. */ SilcUInt16 resolve_cmd_ident; /* Command identifier when resolving */ - SilcAtomic8 refcnt; /* Reference counter */ + SilcAtomic32 refcnt; /* Reference counter */ + SilcAtomic32 deleted; /* Flag indicating whether the client object is + already scheduled for deletion.*/ } SilcClientEntryInternal; /* Internal channel entry context */ @@ -86,14 +89,16 @@ typedef struct SilcChannelEntryInternalStruct { stuff that relates to the channel. Not used for the channel resolving itself. */ - SilcAtomic16 refcnt; /* Reference counter */ + SilcAtomic32 refcnt; /* Reference counter */ + SilcAtomic32 deleted; /* Flag indicating whether the channel object is + already scheduled for deletion.*/ } SilcChannelEntryInternal; /* Internal server entry context */ typedef struct SilcServerEntryInternalStruct { SilcRwLock lock; /* Read/write lock */ SilcUInt16 resolve_cmd_ident; /* Resolving identifier */ - SilcAtomic8 refcnt; /* Reference counter */ + SilcAtomic32 refcnt; /* Reference counter */ } SilcServerEntryInternal; #endif /* CLIENT_H */