Test API to operate the media files

Overview

Functions for convenient work with the media files on local storage. More…

// typedefs

typedef struct tapi_media_file_metadata tapi_media_file_metadata;
typedef struct tapi_media_file tapi_media_file;

// structs

struct tapi_media_file;
struct tapi_media_file_metadata;

// global functions

static const char* tapi_media_file_get_metadata_title(const tapi_media_file_metadata* metadata);
te_errno tapi_media_file_get_from_local(const tapi_local_file* local_file, tapi_media_file** media_file);
void tapi_media_file_free(tapi_media_file* media_file);

Detailed Documentation

Functions for convenient work with the media files on local storage.

Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.

Typedefs

typedef struct tapi_media_file_metadata tapi_media_file_metadata

Metadata of media file.

typedef struct tapi_media_file tapi_media_file

Media file object.

Global Functions

static const char* tapi_media_file_get_metadata_title(const tapi_media_file_metadata* metadata)

Get title from file metadata.

Parameters:

metadata

File metadata.

Returns:

Title of media file.

te_errno tapi_media_file_get_from_local(const tapi_local_file* local_file, tapi_media_file** media_file)

Convert local file to media file and extract it metadata from /local/fs configugator tree. Media file with it resources should be released with tapi_media_file_release when it is no longer needed.

Parameters:

local_file

Local file

media_file

Media file.

Returns:

Status code.

See also:

tapi_media_file_release

void tapi_media_file_free(tapi_media_file* media_file)

Release media file that was got with tapi_media_file_get_from_local.

Parameters:

media_file

Media file.

See also:

tapi_media_file_get_from_local