Skip to content

why not let us have installation status callback? #25

@abdullah-albanna

Description

@abdullah-albanna

I have tested the installation_proxy install callback, and it works every single time

I have done something like this

unsafe extern "C" fn installation_status_callback(
    command: plist_t,
    status: plist_t,
    _: *mut c_void,
) {
    let command = Plist::from(command);
    let status = Plist::from(status);

    let command = ManuallyDrop::new(command);
    let status = ManuallyDrop::new(status);

    println!("{:#?}", command);
    println!("{:#?}", status);
}

the ManuallyDrop is used because of a double free happening, one in Plist and one I guess in libimobiledevice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions