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);
|
|
|
|
int simFitS_id(SID * const fs_id, SID * const 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);
|
|
|
|
SID *asciiStringToS_id(char * const string);
|
|
|
|
|
|
|
|
void s_idToMD5(SID *s_id);
|
|
|
|
char hexToChar(unsigned char);
|
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 */
|