Implement AugNoStdinc, AugSaveNoop and AugNoLoad flags.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Jun 2017 14:14:19 +0000 (15:14 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Jun 2017 14:14:19 +0000 (15:14 +0100)
augeas-c.c
augeas.ml
augeas.mli

index 4818116..3f5431b 100644 (file)
@@ -42,7 +42,10 @@ raise_error (const char *msg)
 static int flag_map[] = {
   /* AugSaveBackup */  AUG_SAVE_BACKUP,
   /* AugSaveNewFile */ AUG_SAVE_NEWFILE,
-  /* AugTypeCheck */   AUG_TYPE_CHECK
+  /* AugTypeCheck */   AUG_TYPE_CHECK,
+  /* AugNoStdinc */    AUG_NO_STDINC,
+  /* AugSaveNoop */    AUG_SAVE_NOOP,
+  /* AugNoLoad */      AUG_NO_LOAD,
 };
 
 /* Wrap and unwrap augeas_t handles, with a finalizer. */
index 40833b2..fa6c680 100644 (file)
--- a/augeas.ml
+++ b/augeas.ml
@@ -26,6 +26,9 @@ type flag =
   | AugSaveBackup
   | AugSaveNewFile
   | AugTypeCheck
+  | AugNoStdinc
+  | AugSaveNoop
+  | AugNoLoad
 
 type path = string
 
index 3fe1e87..bada127 100644 (file)
@@ -29,6 +29,9 @@ type flag =
   | AugSaveBackup                      (** Rename original with .augsave *)
   | AugSaveNewFile                     (** Save changes to .augnew *)
   | AugTypeCheck                       (** Type-check lenses *)
+  | AugNoStdinc
+  | AugSaveNoop
+  | AugNoLoad
   (** Flags passed to the {!create} function. *)
 
 type path = string