]> wimlib.net Git - wimlib/blobdiff - src/wimlib.h
License and documentation
[wimlib] / src / wimlib.h
index 6d9eef48dc42a824d08470d605b381fad82a6eae..8e0caa783d56362e55f7ec1e6f49ee471cb15fa0 100644 (file)
  * This file is part of wimlib, a library for working with WIM files.
  *
  * wimlib is free software; you can redistribute it and/or modify it under the
- * terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
+ * terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 3 of the License, or (at your option)
  * any later version.
  *
  * wimlib is distributed in the hope that it will be useful, but WITHOUT ANY
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * A PARTICULAR PURPOSE. See the GNU General Public License for more
  * details.
  *
- * You should have received a copy of the GNU Lesser General Public License
+ * You should have received a copy of the GNU General Public License
  * along with wimlib; if not, see http://www.gnu.org/licenses/.
  */
 
  *
  * \section legal License
  *
- * The wimlib library is licensed under the GNU Lesser General Public License
- * version 2.1 or later.
+ * The wimlib library is licensed under the GNU General Public License
+ * version 3 or later.
  *
  * @b imagex and @b mkwinpeiso are licensed under the GNU General Public License
  * version 3 or later.
@@ -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,
@@ -404,13 +405,13 @@ 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 *name, 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,
@@ -1121,6 +1122,9 @@ extern int wimlib_set_boot_idx(WIMStruct *wim, int boot_idx);
 extern int wimlib_set_image_descripton(WIMStruct *wim, int image, 
                                       const char *description);
 
+extern int wimlib_set_image_flags(WIMStruct *w, int image,
+                                 const char *flags);
+
 /**
  * Changes the name of an image in the WIM.
  *