diff options
author | Colin Walters <walters@verbum.org> | 2016-03-01 17:42:59 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-03-01 21:45:26 -0500 |
commit | 16979cc5ed9b158b1a9b5ba929c8af32baa41d9d (patch) | |
tree | 41614ab83ed32cbda21ad497d4f4a6a1a0b37f75 /src/libostree/ostree-async-progress.h | |
parent | 2badf36cfdd7684eb83bb5d4113a4be6217a63ee (diff) | |
download | ostree-16979cc5ed9b158b1a9b5ba929c8af32baa41d9d.tar.gz |
lib: Introduce versioned symbols
As rpm-ostree evolves, it keeps driving API additions to libostree.
This creates a relatively tight coupling.
However, if delivering via e.g. RPM, unless one manually remembers to
increment the `Requires:` in the spec file, it's possible for the two
to become desynchronized.
RPM handles versioned symbols and will ensure a dependency if the
application starts using a newer version.
To implement this, switch to `-fvisibility=hidden`, along with an
annotation in the header, and finally add a `.sym` file.
This matches what other projects like systemd and libvirt do.
Although rather than attempting to retroactively version symbols, glom
them all onto the current one.
Diffstat (limited to 'src/libostree/ostree-async-progress.h')
-rw-r--r-- | src/libostree/ostree-async-progress.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libostree/ostree-async-progress.h b/src/libostree/ostree-async-progress.h index 81ed5ef6..ae0e5faa 100644 --- a/src/libostree/ostree-async-progress.h +++ b/src/libostree/ostree-async-progress.h @@ -41,29 +41,39 @@ struct OstreeAsyncProgressClass void (*changed) (OstreeAsyncProgress *self, gpointer user_data); }; +_OSTREE_PUBLIC GType ostree_async_progress_get_type (void) G_GNUC_CONST; +_OSTREE_PUBLIC OstreeAsyncProgress *ostree_async_progress_new (void); +_OSTREE_PUBLIC OstreeAsyncProgress *ostree_async_progress_new_and_connect (void (*changed) (OstreeAsyncProgress *self, gpointer user_data), gpointer user_data); +_OSTREE_PUBLIC char *ostree_async_progress_get_status (OstreeAsyncProgress *self); +_OSTREE_PUBLIC guint ostree_async_progress_get_uint (OstreeAsyncProgress *self, const char *key); +_OSTREE_PUBLIC guint64 ostree_async_progress_get_uint64 (OstreeAsyncProgress *self, const char *key); +_OSTREE_PUBLIC void ostree_async_progress_set_status (OstreeAsyncProgress *self, const char *status); +_OSTREE_PUBLIC void ostree_async_progress_set_uint (OstreeAsyncProgress *self, const char *key, guint value); +_OSTREE_PUBLIC void ostree_async_progress_set_uint64 (OstreeAsyncProgress *self, const char *key, guint64 value); +_OSTREE_PUBLIC void ostree_async_progress_finish (OstreeAsyncProgress *self); G_END_DECLS |