| 2868 | // ============================================================================= |
| 2869 | |
| 2870 | int rcli_get_state(RCLIHandle handle) { |
| 2871 | if (!handle) return 0; |
| 2872 | auto* engine = static_cast<RCLIEngine*>(handle); |
| 2873 | return static_cast<int>(engine->pipeline.state()); |
| 2874 | } |
| 2875 | |
| 2876 | const char* rcli_get_info(RCLIHandle handle) { |
| 2877 | if (!handle) return "{}"; |