Description

Encapsulates functions in the form of function pointers. You can call the get_rts_funcs function to obtain rts_glue_funcs variables and use these variables to call other functions.

struct rts_glue_funcs
{
    int api_version;
    int (* preconfig)(const char *key, const char *val);
    void (* open)(const char *url, const char mode);
    void (* close)(void handle);
    long long (* ioctl)(void *handle, const char *cmd, void arg);
    int (* read)(struct rtsframe **frame, void handle);
    int (* write)(struct rtsframe **frame, void *handle);
};

Parameters

Parameter Description
api_version The API version. It must be set to 2.
preconfig Sets global parameters. You must call the preconfig function before you call the open function. For more information, see preconfig.
open Opens a stream. For more information, see open.
close Closes a stream. For more information, see close.
ioctl Sets and queries parameters. For more information, see ioctl.
read Reads a data frame. For more information, see read.
write Transmits a data frame. For more information, see write.