Sz_addRecord

Function Sz_addRecord 

Source
pub unsafe extern "C" fn Sz_addRecord(
    dataSourceCode: *const c_char,
    recordID: *const c_char,
    jsonData: *const c_char,
) -> i64
Expand description

@brief This method is used to add entity data into the system. This adds or updates a single entity observation record, by adding features for the observation.

@param dataSourceCode The data source for the observation. @param recordID The ID for the record @param jsonData A JSON document containing the attribute information for the observation. @param responseBuf A memory buffer for returning the response document. If an error occurred, an error response is stored here. @param bufSize The max number of bytes that can be stored in responseBuf. The response buffer must be able to hold at least this many bytes, or a resize method must be provided that may be used to resize the buffer. This will return the new size. @param resizeFunc A function pointer that can be used to resize the memory buffer specified in the responseBuf argument. This function will be called to allocate more memory if the response buffer is not large enough. This argument may be NULL. If it is NULL, the function will return an error if the result is larger than the buffer. @return Returns 0 for success. Returns -1 if the response status indicates failure or the module transport is not initialized. Returns -2 if an exception was thrown and caught.