@@ -309,26 +309,6 @@ not found in the file.
309309An unsupported type was provided for a column in the file.
310310*/
311311#define TSK_ERR_BAD_COLUMN_TYPE -105
312-
313- /**
314- The JSON binary struct metadata does not begin with the expected magic bytes.
315- */
316- #define TSK_ERR_JSON_STRUCT_METADATA_BAD_MAGIC -106
317-
318- /**
319- The JSON binary struct metadata is shorter than the expected size.
320- */
321- #define TSK_ERR_JSON_STRUCT_METADATA_TRUNCATED -107
322-
323- /**
324- A length field in the JSON binary struct metadata header is invalid.
325- */
326- #define TSK_ERR_JSON_STRUCT_METADATA_INVALID_LENGTH -108
327-
328- /**
329- The JSON binary struct metadata uses an unsupported version number.
330- */
331- #define TSK_ERR_JSON_STRUCT_METADATA_BAD_VERSION -109
332312/** @} */
333313
334314/**
@@ -1132,31 +1112,6 @@ bool tsk_isfinite(double val);
11321112#define TSK_UUID_SIZE 36
11331113int tsk_generate_uuid (char * dest , int flags );
11341114
1135- /**
1136- @brief Extract the binary payload from ``json+struct`` encoded metadata.
1137-
1138- @rst
1139- Metadata produced by the JSONStructCodec consists of a fixed-size
1140- header followed by canonical JSON bytes and an optional binary payload. This helper
1141- validates the framing, returning pointers to the embedded JSON and binary sections
1142- without copying.
1143-
1144- The output pointers reference memory owned by the caller and remain valid only while
1145- the original metadata buffer is alive.
1146- @endrst
1147-
1148- @param[in] metadata Pointer to the encoded metadata bytes.
1149- @param[in] metadata_length Number of bytes available at ``metadata``.
1150- @param[out] json On success, set to the start of the JSON bytes.
1151- @param[out] json_length On success, set to the JSON length in bytes.
1152- @param[out] blob On success, set to the start of the binary payload.
1153- @param[out] blob_length On success, set to the payload length in bytes.
1154- @return Return 0 on success or a negative value on failure.
1155- */
1156- int tsk_json_struct_metadata_get_blob (char * metadata , tsk_size_t metadata_length ,
1157- char * * json , tsk_size_t * json_length , char * * blob ,
1158- tsk_size_t * blob_length );
1159-
11601115/* TODO most of these can probably be macros so they compile out as no-ops.
11611116 * Lets do the 64 bit tsk_size_t switch first though. */
11621117void * tsk_malloc (tsk_size_t size );
0 commit comments