diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/msibuild.c | 4 | ||||
-rw-r--r-- | tools/msiextract.vala | 2 | ||||
-rw-r--r-- | tools/msiinfo.c | 10 | ||||
-rw-r--r-- | tools/wixl/msi.vala | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/tools/msibuild.c b/tools/msibuild.c index d9031c3..e4a7b1f 100644 --- a/tools/msibuild.c +++ b/tools/msibuild.c @@ -83,7 +83,7 @@ static gboolean open_database(const char *msifile, LibmsiDatabase **db, if (stat(msifile, &st) == -1) { - *db = libmsi_database_new(msifile, LIBMSI_DB_OPEN_CREATE, error); + *db = libmsi_database_new(msifile, LIBMSI_DB_FLAGS_CREATE, NULL, error); if (!*db) goto end; @@ -109,7 +109,7 @@ static gboolean open_database(const char *msifile, LibmsiDatabase **db, } else { - *db = libmsi_database_new(msifile, LIBMSI_DB_OPEN_TRANSACT, error); + *db = libmsi_database_new(msifile, LIBMSI_DB_FLAGS_TRANSACT, NULL, error); if (!*db) goto end; } diff --git a/tools/msiextract.vala b/tools/msiextract.vala index ba9b21a..18f526b 100644 --- a/tools/msiextract.vala +++ b/tools/msiextract.vala @@ -65,7 +65,7 @@ public int main (string[] args) { Libmsi.Database? db = null; try { - db = new Libmsi.Database (files[0], null); + db = new Libmsi.Database (files[0], Libmsi.DbFlags.READONLY, null); } catch (GLib.Error error) { GLib.stderr.printf (error.message); exit (1); diff --git a/tools/msiinfo.c b/tools/msiinfo.c index e6235dc..4dcaeca 100644 --- a/tools/msiinfo.c +++ b/tools/msiinfo.c @@ -196,7 +196,7 @@ static int cmd_streams(struct Command *cmd, int argc, char **argv, GError **erro cmd_usage(stderr, cmd); } - db = libmsi_database_new(argv[1], LIBMSI_DB_OPEN_READONLY, error); + db = libmsi_database_new(argv[1], LIBMSI_DB_FLAGS_READONLY, NULL, error); if (!db) goto end; @@ -230,7 +230,7 @@ static int cmd_tables(struct Command *cmd, int argc, char **argv, GError **error cmd_usage(stderr, cmd); } - db = libmsi_database_new(argv[1], LIBMSI_DB_OPEN_READONLY, error); + db = libmsi_database_new(argv[1], LIBMSI_DB_FLAGS_READONLY, NULL, error); if (!db) goto end; @@ -319,7 +319,7 @@ static int cmd_suminfo(struct Command *cmd, int argc, char **argv, GError **erro cmd_usage(stderr, cmd); } - db = libmsi_database_new(argv[1], LIBMSI_DB_OPEN_READONLY, error); + db = libmsi_database_new(argv[1], LIBMSI_DB_FLAGS_READONLY, NULL, error); if (!db) goto end; @@ -383,7 +383,7 @@ static int cmd_extract(struct Command *cmd, int argc, char **argv, GError **erro cmd_usage(stderr, cmd); } - db = libmsi_database_new(argv[1], LIBMSI_DB_OPEN_READONLY, error); + db = libmsi_database_new(argv[1], LIBMSI_DB_FLAGS_READONLY, NULL, error); if (!db) goto end; @@ -670,7 +670,7 @@ static int cmd_export(struct Command *cmd, int argc, char **argv, GError **error cmd_usage(stderr, cmd); } - db = libmsi_database_new(argv[1], LIBMSI_DB_OPEN_READONLY, error); + db = libmsi_database_new(argv[1], LIBMSI_DB_FLAGS_READONLY, NULL, error); if (!db) return 1; diff --git a/tools/wixl/msi.vala b/tools/wixl/msi.vala index 15092c5..2e3a7a4 100644 --- a/tools/wixl/msi.vala +++ b/tools/wixl/msi.vala @@ -664,7 +664,7 @@ namespace Wixl { string name; MsiTable table; - var db = new Libmsi.Database (filename, (string)2); + var db = new Libmsi.Database (filename, Libmsi.DbFlags.CREATE, null); info.save (db); var it = HashTableIter <string, MsiTable> (tables); |