27 lines
477 B
C
27 lines
477 B
C
/*
|
||
* 版权属于:yitter(yitter@126.com)
|
||
* 开源地址:https://gitee.com/yitter/idgenerator
|
||
*/
|
||
#pragma once
|
||
|
||
#include "idgen/IdGenOptions.h"
|
||
#include "idgen/common.h"
|
||
|
||
#ifdef __cplusplus
|
||
extern "C"
|
||
{
|
||
#endif
|
||
|
||
TAP_DLLEXPORT
|
||
extern void TAP_STDCALL SetIdGenerator(IdGeneratorOptions options);
|
||
|
||
TAP_DLLEXPORT
|
||
extern void TAP_STDCALL SetWorkerId(uint32_t workerId);
|
||
|
||
TAP_DLLEXPORT
|
||
extern int64_t TAP_STDCALL NextId();
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|