]> wimlib.net Git - wimlib/blobdiff - src/wimlib.h
Image capture configuration
[wimlib] / src / wimlib.h
index a379a42f73c6b0f7446b2ee9349e8bb5baf2e33e..f8471f7890b5f6331f60bbff2b1267b85b2a1faf 100644 (file)
@@ -305,6 +305,7 @@ enum wimlib_error_code {
        WIMLIB_ERR_IMAGE_COUNT,
        WIMLIB_ERR_IMAGE_NAME_COLLISION,
        WIMLIB_ERR_INTEGRITY,
+       WIMLIB_ERR_INVALID_CAPTURE_CONFIG,
        WIMLIB_ERR_INVALID_CHUNK_SIZE,
        WIMLIB_ERR_INVALID_COMPRESSION_TYPE,
        WIMLIB_ERR_INVALID_DENTRY,
@@ -322,7 +323,6 @@ enum wimlib_error_code {
        WIMLIB_ERR_NOMEM,
        WIMLIB_ERR_NOTDIR,
        WIMLIB_ERR_NOT_A_WIM_FILE,
-       WIMLIB_ERR_NOT_ROOT,
        WIMLIB_ERR_NO_FILENAME,
        WIMLIB_ERR_NTFS_3G,
        WIMLIB_ERR_OPEN,
@@ -406,7 +406,17 @@ enum wimlib_error_code {
  */
 extern int wimlib_add_image(WIMStruct *wim, const char *dir, 
                            const char *name, const char *description, 
-                           const char *flags_element, int flags);
+                           const char *flags_element,
+                           const char *config, size_t config_len,
+                           int flags);
+
+extern int wimlib_add_image_from_ntfs_volume(WIMStruct *w, const char *device,
+                                            const char *name,
+                                            const char *description,
+                                            const char *flags_element,
+                                            const char *config,
+                                            size_t config_len,
+                                            int flags);
 
 extern int wimlib_apply_image_to_ntfs_volume(WIMStruct *w, int image,
                                             const char *device, int flags);