1+
12#[ doc = "< incoming" ]
23pub const GRIN_DIRECTION_IN : GrinDirection = 0 ;
34#[ doc = "< outgoing" ]
@@ -22,12 +23,24 @@ pub const GRIN_DATATYPE_FLOAT: GrinDatatype = 5;
2223pub const GRIN_DATATYPE_DOUBLE : GrinDatatype = 6 ;
2324#[ doc = "< string" ]
2425pub const GRIN_DATATYPE_STRING : GrinDatatype = 7 ;
25- #[ doc = "< short date" ]
26+ #[ doc = "< date" ]
2627pub const GRIN_DATATYPE_DATE32 : GrinDatatype = 8 ;
27- #[ doc = "< long date" ]
28- pub const GRIN_DATATYPE_DATE64 : GrinDatatype = 9 ;
28+ #[ doc = "< Time32" ]
29+ pub const GRIN_DATATYPE_TIME32 : GrinDatatype = 9 ;
30+ #[ doc = "< Timestamp" ]
31+ pub const GRIN_DATATYPE_TIMESTAMP64 : GrinDatatype = 10 ;
2932#[ doc = " Enumerates the datatype supported in the storage" ]
3033pub type GrinDatatype = u32 ;
34+ #[ doc = "< success" ]
35+ pub const GrinErrorCodeGrinNoError : GrinErrorCode = 0 ;
36+ #[ doc = "< unknown error" ]
37+ pub const GrinErrorCodeGrinUnknownError : GrinErrorCode = 1 ;
38+ #[ doc = "< invalid value" ]
39+ pub const GrinErrorCodeGrinInvalidValue : GrinErrorCode = 2 ;
40+ #[ doc = "< unknown datatype" ]
41+ pub const GrinErrorCodeGrinUnknownDatatype : GrinErrorCode = 3 ;
42+ #[ doc = " Enumerates the error codes of grin" ]
43+ pub type GrinErrorCode = u32 ;
3144#[ doc = "@}" ]
3245pub type GrinGraph = * mut :: std:: os:: raw:: c_void ;
3346pub type GrinVertex = * mut :: std:: os:: raw:: c_void ;
@@ -38,22 +51,22 @@ pub type GrinVertexListIterator = *mut ::std::os::raw::c_void;
3851pub type GrinAdjacentList = * mut :: std:: os:: raw:: c_void ;
3952pub type GrinAdjacentListIterator = * mut :: std:: os:: raw:: c_void ;
4053pub type GrinPartitionedGraph = * mut :: std:: os:: raw:: c_void ;
41- pub type GrinPartition = * mut :: std :: os :: raw :: c_void ;
54+ pub type GrinPartition = u32 ;
4255pub type GrinPartitionList = * mut :: std:: os:: raw:: c_void ;
4356pub type GrinPartitionId = u32 ;
44- pub type GrinVertexRef = * mut :: std :: os :: raw :: c_void ;
45- pub type GrinVertexType = * mut :: std :: os :: raw :: c_void ;
57+ pub type GrinVertexRef = i64 ;
58+ pub type GrinVertexType = u32 ;
4659pub type GrinVertexTypeList = * mut :: std:: os:: raw:: c_void ;
47- pub type GrinVertexProperty = * mut :: std :: os :: raw :: c_void ;
60+ pub type GrinVertexProperty = u64 ;
4861pub type GrinVertexPropertyList = * mut :: std:: os:: raw:: c_void ;
4962pub type GrinVertexPropertyTable = * mut :: std:: os:: raw:: c_void ;
5063pub type GrinVertexTypeId = u32 ;
5164pub type GrinVertexPropertyId = u32 ;
52- pub type GrinEdgeType = * mut :: std :: os :: raw :: c_void ;
65+ pub type GrinEdgeType = u32 ;
5366pub type GrinEdgeTypeList = * mut :: std:: os:: raw:: c_void ;
5467pub type GrinVevType = * mut :: std:: os:: raw:: c_void ;
5568pub type GrinVevTypeList = * mut :: std:: os:: raw:: c_void ;
56- pub type GrinEdgeProperty = * mut :: std :: os :: raw :: c_void ;
69+ pub type GrinEdgeProperty = u64 ;
5770pub type GrinEdgePropertyList = * mut :: std:: os:: raw:: c_void ;
5871pub type GrinEdgePropertyTable = * mut :: std:: os:: raw:: c_void ;
5972pub type GrinEdgeTypeId = u32 ;
@@ -314,6 +327,17 @@ extern "C" {
314327 #[ cfg( feature = "grin_enable_vertex_ref" ) ]
315328 pub fn grin_is_mirror_vertex ( arg1 : GrinGraph , arg2 : GrinVertex ) -> bool ;
316329
330+ pub fn grin_serialize_vertex_ref_as_int64 (
331+ arg1 : GrinGraph ,
332+ arg2 : GrinVertexRef ,
333+ ) -> i64 ;
334+
335+ #[ cfg( feature = "grin_trait_fast_vertex_ref" ) ]
336+ pub fn grin_deserialize_vertex_ref_from_int64 (
337+ arg1 : GrinGraph ,
338+ arg2 : i64 ,
339+ ) -> GrinVertexRef ;
340+
317341 #[ cfg( feature = "grin_enable_graph_partition" ) ]
318342 pub fn grin_get_total_vertex_num ( arg1 : GrinPartitionedGraph ) -> usize ;
319343
@@ -1066,4 +1090,6 @@ extern "C" {
10661090 arg2 : GrinVertexList ,
10671091 arg3 : GrinVertex ,
10681092 ) -> usize ;
1093+
1094+ pub static mut grin_error_code: GrinErrorCode ;
10691095}
0 commit comments