X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwimlib.h;h=a433a9bcf631f2aadbb5a05859dfe6f2eea73786;hb=5e2f9715d5c0e1f1c3fc30a53d14df69a8bdae4a;hp=a50c0eded2226d029c62a2342362aef602e86f24;hpb=603da5edd9d878b6ffeb11508a18356e5c324aaf;p=wimlib diff --git a/src/wimlib.h b/src/wimlib.h index a50c0ede..a433a9bc 100644 --- a/src/wimlib.h +++ b/src/wimlib.h @@ -2526,7 +2526,28 @@ wimlib_unmount_image(const wimlib_tchar *dir, int unmount_flags, wimlib_progress_func_t progress_func); -/** XXX */ +/** + * Update a WIM image by adding, deleting, and/or renaming files or directories. + * + * @param wim + * Pointer to the ::WIMStruct for the WIM file to update. + * @param image + * The 1-based index of the image in the WIM to update. It cannot be + * ::WIMLIB_ALL_IMAGES. + * @param cmds + * An array of ::wimlib_update_command's that specify the update operations + * to perform. + * @param num_cmds + * Number of commands in @a cmds. + * @param update_flags + * Reserved; must be 0. + * @param progress_func + * If non-NULL, a function that will be called periodically with the + * progress of the current operation. + * + * @return 0 on success; nonzero on error. There are many possible error codes + * (TODO: document them.) + */ extern int wimlib_update_image(WIMStruct *wim, int image,