X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Ffile.h;h=2a27477987c62806797d6efcf49f823ca9aac8f1;hb=d951f1c78c2131fd466abec3c800fff7a4108c65;hp=5178140a1c3521853e692223e14f0a893fd41ba8;hpb=f85f8ebbfac946c19b3c6eb0f4170f579d0a4d25;p=openvswitch diff --git a/ovsdb/file.h b/ovsdb/file.h index 5178140a..2a274779 100644 --- a/ovsdb/file.h +++ b/ovsdb/file.h @@ -16,21 +16,13 @@ #ifndef OVSDB_FILE_H #define OVSDB_FILE_H 1 -#include +#include #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 */