63 lines
1.4 KiB
C
63 lines
1.4 KiB
C
#ifndef _DATASERVER_COMMAND_H_
|
|
#define _DATASERVER_COMMAND_H_
|
|
|
|
#include "stdint.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Message control commands
|
|
* The commands are in string format,
|
|
* user can use the following macros
|
|
* to construct the command strings.
|
|
*/
|
|
|
|
/**
|
|
* @brief Set the data source, aka the device name.
|
|
* The parameter is a string pair,
|
|
* the first one represents for the device name,
|
|
* the second one should be the client's ID(mandatory).
|
|
*/
|
|
#define ds_cmd_set_source "src_set %s:%s"
|
|
|
|
/**
|
|
* @brief Set the specific parameters for device "vbi".
|
|
* For ATSC CC, value 1 should be set as parameter.
|
|
*/
|
|
#define ds_cmd_set_source_para_vbi_type "src_para_vbi_type %d"
|
|
|
|
/**
|
|
* @brief Set the specific parameters for device "userdata".
|
|
* For multi-inst, vdec id should be set as parameter.
|
|
*/
|
|
#define ds_cmd_set_source_para_userdata_vid "src_para_userdata_vid %d"
|
|
|
|
/**
|
|
* @brief Reset the data path.
|
|
* The client can reset the data path,
|
|
* including all the buffers links in the path, inside the data server.
|
|
*/
|
|
#define ds_cmd_reset_data "da_reset"
|
|
|
|
/**
|
|
* @brief Enable the ringbuffer and set its size.
|
|
* The parameter is the size of the ringbuffer.
|
|
*/
|
|
#define ds_cmd_enable_ringbuffer "rb_en %d"
|
|
|
|
/**
|
|
* @brief Disable the ringbuffer
|
|
*/
|
|
#define ds_cmd_disable_ringbuffer "rb_dis"
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|