[−][src]Function mmal_sys::mmal_component_create
pub unsafe extern "C" fn mmal_component_create(
name: *const c_char,
component: *mut *mut MMAL_COMPONENT_T
) -> Type
Create an instance of a component. The newly created component will expose ports to the client. All the exposed ports are disabled by default. Note that components are reference counted and creating a component automatically acquires a reference to it (released when \ref mmal_component_destroy is called).
@param name name of the component to create, e.g. "video_decode" @param component returned component @return MMAL_SUCCESS on success