#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 */