2018-07-25 14:10:09 +00:00
|
|
|
#ifndef id_h
|
|
|
|
#define id_h
|
|
|
|
|
2018-07-30 09:45:33 +00:00
|
|
|
#include <stdio.h>
|
2018-07-25 14:10:09 +00:00
|
|
|
#include <stdlib.h>
|
2018-07-30 09:45:33 +00:00
|
|
|
#include <string.h>
|
2018-07-25 14:10:09 +00:00
|
|
|
#include <time.h>
|
2018-07-30 09:45:33 +00:00
|
|
|
#include "../type/type.h"
|
2018-08-14 15:59:55 +00:00
|
|
|
#include "md5.h"
|
2018-07-30 09:45:33 +00:00
|
|
|
|
2018-07-25 14:10:09 +00:00
|
|
|
void init_rand(void);
|
|
|
|
unsigned long long getId(void);
|
|
|
|
|
2018-08-03 10:32:20 +00:00
|
|
|
SID *getS_id(unsigned int type, unsigned int deep_level);
|
2018-07-30 09:45:33 +00:00
|
|
|
|
2018-08-14 15:59:55 +00:00
|
|
|
int fitS_id(SID * const fs_id, SID * const ss_id);
|
2018-08-17 08:58:15 +00:00
|
|
|
int simFitS_id(SID * fs_id, SID * ss_id);
|
2018-07-30 09:45:33 +00:00
|
|
|
|
2018-08-14 15:59:55 +00:00
|
|
|
char *s_idToASCIIString(SID * const s_id);
|
2018-08-21 08:26:31 +00:00
|
|
|
void setSidToASCIIString(SID * const s_id);
|
|
|
|
SID *asciiRawStringToS_id(char * const string);
|
|
|
|
SID *setS_idWithString(char *);
|
2018-08-14 15:59:55 +00:00
|
|
|
|
|
|
|
void s_idToMD5(SID *s_id);
|
2018-08-21 08:26:31 +00:00
|
|
|
char hexToChar(unsigned int);
|
2018-08-17 08:58:15 +00:00
|
|
|
SID *copyS_id(SID *f_sid);
|
|
|
|
void getRawS_id(SID *s_id, unsigned int type, unsigned int deep_level);
|
2018-07-30 09:45:33 +00:00
|
|
|
|
|
|
|
SID *initS_id(unsigned int deep_level);
|
2018-08-14 15:59:55 +00:00
|
|
|
int freeSidRaw(SID *s_id);
|
2018-07-30 10:07:24 +00:00
|
|
|
int freeS_id(SID *s_id);
|
2018-07-25 14:10:09 +00:00
|
|
|
|
2018-08-14 15:59:55 +00:00
|
|
|
static _Bool if_rand;
|
2018-07-25 14:10:09 +00:00
|
|
|
#endif /* id_h */
|