Updated on 2022-03-13 GMT+08:00

Obtaining the ID of the Next Graph

Obtains the ID of the next graph. This API is defined in c_graph.h.

Syntax

Common API between C and C++: HIAI_StatusT HIAI_GetNextGraphId(const uint32_t curGraphID,uint32_t *nextGraphID);

Parameter Description

Parameter

Description

Value Range

curGraphID

ID of the current graph

-

nextGraphID

Pointer to the ID of the next graph

-

Return Value

For details about the returned error codes, see "Error Codes."

Error Codes

No.

Error Level

Error Code

Description

1

HIAI_INFO

HIAI_OK

The running is OK.

2

HIAI_ERROR

HIAI_GRAPH_GET_GRAPHID_ERROR

There is an error in obtaining the graph ID.

Calling Example

uint32_t cur_graph_id = 1;
uint32_t next_graph_id;
HIAI_GetNextGraphId(cur_graph_id, &next_graph_id);