diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2023-04-13 13:29:14 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2023-04-14 12:31:01 +0100 |
commit | c70e06b42823950d7adeabf100cba6a004f9199f (patch) | |
tree | ce4286ed40b025303d4c151d20ada54c5586b277 /gvdb/gvdb-builder.h | |
parent | 0854af0fdb6d527a8d1999835ac2c5059976c210 (diff) | |
download | gvdb-c70e06b42823950d7adeabf100cba6a004f9199f.tar.gz |
Add getter for GVDB table contents
The xdg-desktop-portal project is using GVDB as the basis for the
permissions store.
Each permission table is stores as a block of bytes inside another GVDB
table, in order to isolate the permissions of each application.
Currently, xdg-desktop-portal uses GVDB as a copy-paste library; the
only missing API to avoid that, and switch GVDB to a proper subproject,
is a way to extract the contents of a GVDB table into a GBytes buffer.
Diffstat (limited to 'gvdb/gvdb-builder.h')
-rw-r--r-- | gvdb/gvdb-builder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gvdb/gvdb-builder.h b/gvdb/gvdb-builder.h index 30757d0..e64a7b9 100644 --- a/gvdb/gvdb-builder.h +++ b/gvdb/gvdb-builder.h @@ -63,4 +63,8 @@ gboolean gvdb_table_write_contents_finish (GHashTa GAsyncResult *result, GError **error); +G_GNUC_INTERNAL +GBytes * gvdb_table_get_contents (GHashTable *table, + gboolean byteswap); + #endif /* __gvdb_builder_h__ */ |