X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib.h;h=0d20239e49e21389b6f08613f8d737c418b8b626;hb=888cb65de7d0bd6c14c2247288244ed42f8754aa;hp=32482032149e7e43df140eef5a9b5b39d832693f;hpb=039a0b038851fc9aecd595d182c8eee02093247d;p=wimlib diff --git a/include/wimlib.h b/include/wimlib.h index 32482032..0d20239e 100644 --- a/include/wimlib.h +++ b/include/wimlib.h @@ -1398,6 +1398,19 @@ typedef int (*wimlib_iterate_lookup_table_callback_t)(const struct wimlib_resour * @} */ +/** The specific type of update to perform. */ +enum wimlib_update_op { + /** Add a new file or directory tree to the WIM image in a + * certain location. */ + WIMLIB_UPDATE_OP_ADD = 0, + + /** Delete a file or directory tree from the WIM image. */ + WIMLIB_UPDATE_OP_DELETE, + + /** Rename a file or directory tree in the WIM image. */ + WIMLIB_UPDATE_OP_RENAME, +}; + /** Data for a ::WIMLIB_UPDATE_OP_ADD operation. */ struct wimlib_add_command { /** Filesystem path to the file or directory tree to @@ -1445,18 +1458,8 @@ struct wimlib_rename_command { /** Specification of an update to perform on a WIM image. */ struct wimlib_update_command { - /** The specific type of update to perform. */ - enum wimlib_update_op { - /** Add a new file or directory tree to the WIM image in a - * certain location. */ - WIMLIB_UPDATE_OP_ADD = 0, - - /** Delete a file or directory tree from the WIM image. */ - WIMLIB_UPDATE_OP_DELETE, + enum wimlib_update_op op; - /** Rename a file or directory tree in the WIM image. */ - WIMLIB_UPDATE_OP_RENAME, - } op; union { struct wimlib_add_command add; struct wimlib_delete_command delete_; /* Underscore is for C++