Phase 1 plus some refactoring.
This commit is contained in:
parent
71f7b4d96b
commit
8075e1b79d
17 changed files with 465 additions and 266 deletions
26
docs/IDEA.md
26
docs/IDEA.md
|
|
@ -229,23 +229,23 @@ Example API shape (illustrative only; refine after reviewing the actual codebase
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct xt_app xt_app;
|
||||
typedef struct xtc_app xtc_app;
|
||||
|
||||
typedef enum {
|
||||
XT_OK = 0,
|
||||
XT_ERR_INVALID_ARGUMENT,
|
||||
XT_ERR_OUT_OF_MEMORY,
|
||||
XT_ERR_NOT_FOUND,
|
||||
XT_ERR_INVALID_STATE,
|
||||
XT_ERR_IO,
|
||||
XT_ERR_UNSUPPORTED
|
||||
} xt_result;
|
||||
XTC_OK = 0,
|
||||
XTC_ERR_INVALID_ARGUMENT,
|
||||
XTC_ERR_OUT_OF_MEMORY,
|
||||
XTC_ERR_NOT_FOUND,
|
||||
XTC_ERR_INVALID_STATE,
|
||||
XTC_ERR_IO,
|
||||
XTC_ERR_UNSUPPORTED
|
||||
} xtc_result;
|
||||
|
||||
xt_result xt_app_create(xt_app **out_app);
|
||||
void xt_app_destroy(xt_app *app);
|
||||
xtc_result xtc_app_create(xtc_app **out_app);
|
||||
void xtc_app_destroy(xtc_app *app);
|
||||
|
||||
xt_result xt_transport_play(xt_app *app);
|
||||
xt_result xt_transport_stop(xt_app *app);
|
||||
xtc_result xtc_transport_play(xtc_app *app);
|
||||
xtc_result xtc_transport_stop(xtc_app *app);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue