X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fid.h;h=8fe79ad377deead9d10100c9cd302ce4f68570af;hb=72cfa31520ebc0058763a30e21c13f6e9a964aa0;hp=d4c813c4e012b95ab92349448feee8f3a68d4b91;hpb=2be0be2432fff760084c4093291e79f1fa6262d8;p=silc.git diff --git a/lib/silccore/id.h b/lib/silccore/id.h index d4c813c4..8fe79ad3 100644 --- a/lib/silccore/id.h +++ b/lib/silccore/id.h @@ -42,7 +42,7 @@ #define SILC_ID_CHANNEL 3 /* Type definition for the ID types. */ -typedef unsigned short SilcIdType; +typedef uint16 SilcIdType; /* 64 bit SilcServerID structure: @@ -53,8 +53,8 @@ typedef unsigned short SilcIdType; */ typedef struct { struct in_addr ip; /* 32 bit IP */ - unsigned short port; /* 16 bit port */ - unsigned short rnd; /* 16 bit random number */ + uint16 port; /* 16 bit port */ + uint16 rnd; /* 16 bit random number */ } SilcServerID; /* @@ -79,8 +79,8 @@ typedef struct { */ typedef struct { struct in_addr ip; /* 32 bit IP */ - unsigned short port; /* 16 bit port */ - unsigned short rnd; /* 16 bit random number */ + uint16 port; /* 16 bit port */ + uint16 rnd; /* 16 bit random number */ } SilcChannelID; /* Macros */ @@ -114,8 +114,8 @@ typedef struct { /* Prototypes */ unsigned char *silc_id_id2str(void *id, SilcIdType type); -void *silc_id_str2id(unsigned char *id, unsigned int id_len, SilcIdType type); -unsigned int silc_id_get_len(SilcIdType type); +void *silc_id_str2id(unsigned char *id, uint32 id_len, SilcIdType type); +uint32 silc_id_get_len(SilcIdType type); void *silc_id_dup(void *id, SilcIdType type); #endif