X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient.h;h=d66808dcef168e06473e7168104b18f97430ce43;hp=ebe41fe903f752ee261e14cd18edd51e7042adad;hb=e9374395ec9747bddd3ea0bfd3e5a17717e97b31;hpb=90e14dc985628e0b0f86e604d511039d302dc956 diff --git a/lib/silcclient/client.h b/lib/silcclient/client.h index ebe41fe9..d66808dc 100644 --- a/lib/silcclient/client.h +++ b/lib/silcclient/client.h @@ -53,16 +53,17 @@ typedef struct SilcClientEntryInternalStruct { SilcUInt32 key_len; /* Key data length */ SilcClientKeyAgreement ke; /* Current key agreement context or NULL */ + SilcAtomic32 refcnt; /* Reference counter */ + SilcAtomic32 deleted; /* Flag indicating whether the client object is + already scheduled for deletion */ + SilcUInt16 resolve_cmd_ident; /* Command identifier when resolving */ + /* Flags */ unsigned int valid : 1; /* FALSE if this entry is not valid. Entry without nickname is not valid. */ unsigned int generated : 1; /* TRUE if library generated `key' */ unsigned int prv_resp : 1; /* TRUE if we are responder when using private message keys. */ - SilcUInt16 resolve_cmd_ident; /* Command identifier when resolving */ - SilcAtomic32 refcnt; /* Reference counter */ - SilcAtomic32 deleted; /* Flag indicating whether the client object is - already scheduled for deletion.*/ } SilcClientEntryInternal; /* Internal channel entry context */ @@ -83,15 +84,16 @@ typedef struct SilcChannelEntryInternalStruct { SilcHmac hmac; /* Current HMAC */ unsigned char iv[SILC_CIPHER_MAX_IV_SIZE]; /* Current IV */ + SilcAtomic32 refcnt; /* Reference counter */ + SilcAtomic32 deleted; /* Flag indicating whether the + channel object is already + scheduled for deletion */ SilcUInt16 resolve_cmd_ident; /* Channel information resolving identifier. This is used when resolving users, and other stuff that relates to the channel. Not used for the channel resolving itself. */ - SilcAtomic32 refcnt; /* Reference counter */ - SilcAtomic32 deleted; /* Flag indicating whether the channel object is - already scheduled for deletion.*/ } SilcChannelEntryInternal; /* Internal server entry context */