ovs-vsctl: Add option to create fake iface when adding a bond
[openvswitch] / ovsdb / file.h
index 5178140a1c3521853e692223e14f0a893fd41ba8..2a27477987c62806797d6efcf49f823ca9aac8f1 100644 (file)
 #ifndef OVSDB_FILE_H
 #define OVSDB_FILE_H 1
 
-#include <sys/types.h>
+#include <stdbool.h>
 #include "compiler.h"
 
-struct json;
-struct ovsdb_file;
+struct ovsdb;
 
-struct ovsdb_error *ovsdb_file_open(const char *name, int flags,
-                                    struct ovsdb_file **) WARN_UNUSED_RESULT;
-void ovsdb_file_close(struct ovsdb_file *);
-
-struct ovsdb_error *ovsdb_file_read(struct ovsdb_file *, struct json **)
-    WARN_UNUSED_RESULT;
-struct ovsdb_error *ovsdb_file_write(struct ovsdb_file *, struct json *)
-    WARN_UNUSED_RESULT;
-struct ovsdb_error *ovsdb_file_commit(struct ovsdb_file *)
+struct ovsdb_error *ovsdb_file_open(const char *file_name, bool read_only,
+                                    struct ovsdb **)
     WARN_UNUSED_RESULT;
 
 #endif /* ovsdb/file.h */