Add C stubs for ML Trainer API