()
| 395 | /// * Must NOT be freed (it's a static string) |
| 396 | #[no_mangle] |
| 397 | pub extern "C" fn graphlite_version() -> *const c_char { |
| 398 | // Using a static string so it doesn't need to be freed |
| 399 | const VERSION: &[u8] = b"0.1.0\0"; |
| 400 | VERSION.as_ptr() as *const c_char |
| 401 | } |
| 402 | |
| 403 | // Helper function to set error code if output pointer is not null |
| 404 | fn set_error(error_out: *mut GraphLiteErrorCode, code: GraphLiteErrorCode) { |