2014-02-10 20:01:35 +00:00
|
|
|
#ifndef MP_CLIENT_H_
|
|
|
|
#define MP_CLIENT_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "libmpv/client.h"
|
|
|
|
|
|
|
|
struct MPContext;
|
|
|
|
struct mpv_handle;
|
|
|
|
struct mp_client_api;
|
|
|
|
struct mp_log;
|
|
|
|
|
|
|
|
void mp_clients_init(struct MPContext *mpctx);
|
|
|
|
void mp_clients_destroy(struct MPContext *mpctx);
|
|
|
|
int mp_clients_num(struct MPContext *mpctx);
|
2014-09-06 15:02:47 +00:00
|
|
|
bool mp_clients_all_initialized(struct MPContext *mpctx);
|
2014-02-10 20:01:35 +00:00
|
|
|
|
|
|
|
void mp_client_broadcast_event(struct MPContext *mpctx, int event, void *data);
|
|
|
|
int mp_client_send_event(struct MPContext *mpctx, const char *client_name,
|
|
|
|
int event, void *data);
|
2014-08-28 15:35:50 +00:00
|
|
|
bool mp_client_event_is_registered(struct MPContext *mpctx, int event);
|
2014-08-01 23:39:28 +00:00
|
|
|
void mp_client_property_change(struct MPContext *mpctx, const char *name);
|
2014-02-10 20:01:35 +00:00
|
|
|
|
|
|
|
struct mpv_handle *mp_new_client(struct mp_client_api *clients, const char *name);
|
|
|
|
struct mp_log *mp_client_get_log(struct mpv_handle *ctx);
|
2014-05-12 23:14:07 +00:00
|
|
|
struct MPContext *mp_client_get_core(struct mpv_handle *ctx);
|
2014-02-10 20:01:35 +00:00
|
|
|
|
|
|
|
#endif
|