获取下一个GraphID
获取下一个GraphID。该接口在c_graph.h中定义。
函数格式
C语言与C++通用接口:HIAI_StatusT HIAI_GetNextGraphId(const uint32_t curGraphID,uint32_t *nextGraphID);
参数说明
参数 |
说明 |
取值范围 |
---|---|---|
curGraphID |
当前graph id。 |
- |
nextGraphID |
下一个graph的id指针。 |
- |
返回值
返回的部分错误码请参见“错误码示例”中的“错误码”列。
错误码
序号 |
错误码级别 |
错误码 |
错误码描述 |
---|---|---|---|
1 |
HIAI_INFO |
HIAI_OK |
running ok |
2 |
HIAI_ERROR |
HIAI_GRAPH_GET_GRAPHID_ERROR |
get graph id error |
调用示例
uint32_t cur_graph_id = 1; uint32_t next_graph_id; HIAI_GetNextGraphId(cur_graph_id, &next_graph_id);