Function rename to aaruf_write_media_tag

This commit is contained in:
2025-10-06 05:15:51 +01:00
parent 7173b6b5d0
commit 4f321d65b8
2 changed files with 7 additions and 7 deletions

View File

@@ -96,7 +96,7 @@ AARU_EXPORT int32_t AARU_CALL aaruf_write_sector(void *context, uint64_t sector_
const uint8_t *data, uint8_t sector_status, uint32_t length); const uint8_t *data, uint8_t sector_status, uint32_t length);
AARU_EXPORT int32_t AARU_CALL aaruf_write_sector_long(void *context, uint64_t sector_address, bool negative, AARU_EXPORT int32_t AARU_CALL aaruf_write_sector_long(void *context, uint64_t sector_address, bool negative,
const uint8_t *data, uint8_t sector_status, uint32_t length); const uint8_t *data, uint8_t sector_status, uint32_t length);
AARU_EXPORT int32_t AARU_CALL write_media_tag(void *context, const uint8_t *data, const int32_t type, AARU_EXPORT int32_t AARU_CALL aaruf_write_media_tag(void *context, const uint8_t *data, const int32_t type,
const uint32_t length); const uint32_t length);
AARU_EXPORT int32_t AARU_CALL aaruf_verify_image(void *context); AARU_EXPORT int32_t AARU_CALL aaruf_verify_image(void *context);

View File

@@ -1498,16 +1498,16 @@ int32_t aaruf_close_current_block(aaruformatContext *ctx)
* @see aaruf_close() for media tag serialization and memory cleanup * @see aaruf_close() for media tag serialization and memory cleanup
* @see MediaTagType enumeration for valid type identifier values and meanings * @see MediaTagType enumeration for valid type identifier values and meanings
*/ */
int32_t write_media_tag(void *context, const uint8_t *data, const int32_t type, const uint32_t length) int32_t aaruf_write_media_tag(void *context, const uint8_t *data, const int32_t type, const uint32_t length)
{ {
TRACE("Entering write_media_tag(%p, %p, %d, %d)", context, data, type, length); TRACE("Entering aaruf_write_media_tag(%p, %p, %d, %d)", context, data, type, length);
// Check context is correct AaruFormat context // Check context is correct AaruFormat context
if(context == NULL) if(context == NULL)
{ {
FATAL("Invalid context"); FATAL("Invalid context");
TRACE("Exiting aaruf_write_sector() = AARUF_ERROR_NOT_AARUFORMAT"); TRACE("Exiting aaruf_write_media_tag() = AARUF_ERROR_NOT_AARUFORMAT");
return AARUF_ERROR_NOT_AARUFORMAT; return AARUF_ERROR_NOT_AARUFORMAT;
} }
@@ -1518,7 +1518,7 @@ int32_t write_media_tag(void *context, const uint8_t *data, const int32_t type,
{ {
FATAL("Invalid context"); FATAL("Invalid context");
TRACE("Exiting aaruf_write_sector() = AARUF_ERROR_NOT_AARUFORMAT"); TRACE("Exiting aaruf_write_media_tag() = AARUF_ERROR_NOT_AARUFORMAT");
return AARUF_ERROR_NOT_AARUFORMAT; return AARUF_ERROR_NOT_AARUFORMAT;
} }
@@ -1527,7 +1527,7 @@ int32_t write_media_tag(void *context, const uint8_t *data, const int32_t type,
{ {
FATAL("Trying to write a read-only image"); FATAL("Trying to write a read-only image");
TRACE("Exiting aaruf_write_sector() = AARUF_READ_ONLY"); TRACE("Exiting aaruf_write_media_tag() = AARUF_READ_ONLY");
return AARUF_READ_ONLY; return AARUF_READ_ONLY;
} }
@@ -1572,6 +1572,6 @@ int32_t write_media_tag(void *context, const uint8_t *data, const int32_t type,
old_media_tag = NULL; old_media_tag = NULL;
} }
TRACE("Exiting write_media_tag() = AARUF_STATUS_OK"); TRACE("Exiting aaruf_write_media_tag() = AARUF_STATUS_OK");
return AARUF_STATUS_OK; return AARUF_STATUS_OK;
} }