| 857 | } |
| 858 | |
| 859 | s32 cellCameraIsOpen(s32 dev_num) |
| 860 | { |
| 861 | cellCamera.trace("cellCameraIsOpen(dev_num=%d)", dev_num); |
| 862 | |
| 863 | if (g_cfg.io.camera == camera_handler::null) |
| 864 | { |
| 865 | return false; |
| 866 | } |
| 867 | |
| 868 | auto& g_camera = g_fxo->get<camera_thread>(); |
| 869 | |
| 870 | if (!g_camera.init) |
| 871 | { |
| 872 | return false; |
| 873 | } |
| 874 | |
| 875 | if (!check_dev_num(dev_num)) |
| 876 | { |
| 877 | return false; |
| 878 | } |
| 879 | |
| 880 | std::lock_guard lock(g_camera.mutex); |
| 881 | |
| 882 | return g_camera.is_open.load(); |
| 883 | } |
| 884 | |
| 885 | s32 cellCameraIsStarted(s32 dev_num) |
| 886 | { |
nothing calls this directly
no test coverage detected