Commit b0ffce5e authored by Laurent Aimar's avatar Laurent Aimar

Added vout_control_PushInteger.

parent a224dc99
...@@ -134,6 +134,14 @@ void vout_control_PushBool(vout_control_t *ctrl, int type, bool boolean) ...@@ -134,6 +134,14 @@ void vout_control_PushBool(vout_control_t *ctrl, int type, bool boolean)
cmd.u.boolean = boolean; cmd.u.boolean = boolean;
vout_control_Push(ctrl, &cmd); vout_control_Push(ctrl, &cmd);
} }
void vout_control_PushInteger(vout_control_t *ctrl, int type, int integer)
{
vout_control_cmd_t cmd;
vout_control_cmd_Init(&cmd, type);
cmd.u.integer = integer;
vout_control_Push(ctrl, &cmd);
}
void vout_control_PushTime(vout_control_t *ctrl, int type, mtime_t time) void vout_control_PushTime(vout_control_t *ctrl, int type, mtime_t time)
{ {
vout_control_cmd_t cmd; vout_control_cmd_t cmd;
......
...@@ -68,6 +68,7 @@ typedef struct { ...@@ -68,6 +68,7 @@ typedef struct {
mtime_t time; mtime_t time;
mtime_t *time_ptr; mtime_t *time_ptr;
char *string; char *string;
int integer;
struct { struct {
int a; int a;
int b; int b;
...@@ -123,6 +124,7 @@ void vout_control_WaitEmpty(vout_control_t *); ...@@ -123,6 +124,7 @@ void vout_control_WaitEmpty(vout_control_t *);
void vout_control_Push(vout_control_t *, vout_control_cmd_t *); void vout_control_Push(vout_control_t *, vout_control_cmd_t *);
void vout_control_PushVoid(vout_control_t *, int type); void vout_control_PushVoid(vout_control_t *, int type);
void vout_control_PushBool(vout_control_t *, int type, bool boolean); void vout_control_PushBool(vout_control_t *, int type, bool boolean);
void vout_control_PushInteger(vout_control_t *, int type, int integer);
void vout_control_PushTime(vout_control_t *, int type, mtime_t time); void vout_control_PushTime(vout_control_t *, int type, mtime_t time);
void vout_control_PushMessage(vout_control_t *, int type, int channel, const char *string); void vout_control_PushMessage(vout_control_t *, int type, int channel, const char *string);
void vout_control_PushPair(vout_control_t *, int type, int a, int b); void vout_control_PushPair(vout_control_t *, int type, int a, int b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment