libmpv  20200718-git-96cdf53
development library for the MPV media player
Looking for a C++ dev?
I'm looking for work. Hire me!
mpv_event_property Struct Reference

#include <client.h>

Public Attributes

const char * name
 Name of the property. More...
 
mpv_format format
 Format of the data field in the same struct. More...
 
void * data
 Received property value. More...
 

Detailed Description

Definition at line 1512 of file client.h.

Member Data Documentation

◆ data

void* mpv_event_property::data

Received property value.

Depends on the format. This is like the pointer argument passed to mpv_get_property().

For example, for MPV_FORMAT_STRING you get the string with:

char *value = *(char **)(event_property->data);

Note that this is set to NULL if retrieving the property failed (the format will be MPV_FORMAT_NONE).

Definition at line 1535 of file client.h.

◆ format

mpv_format mpv_event_property::format

Format of the data field in the same struct.

See enum mpv_format. This is always the same format as the requested format, except when the property could not be retrieved (unavailable, or an error happened), in which case the format is MPV_FORMAT_NONE.

Definition at line 1523 of file client.h.

◆ name

const char* mpv_event_property::name

Name of the property.

Definition at line 1516 of file client.h.


The documentation for this struct was generated from the following file: