Commit Graph

209 Commits

Author SHA1 Message Date
Alexander Larsson
87be89a7b8 lib: Add xdg_app_bundle_ref_get_origin() 2016-02-26 14:20:28 +01:00
Alexander Larsson
1ee1ed6eb9 lib: Fix a tiny leak 2016-02-26 14:17:07 +01:00
Alexander Larsson
38c24d536a Update test-lib.c with the appstream api change 2016-02-26 12:53:47 +01:00
Alexander Larsson
d43d8cd8c8 Change xdg_app_bundle_ref_get_appdata to xdg_app_bundle_ref_get_appstream
This is technically an ABI break, but nothing is using this yet.
2016-02-26 12:52:38 +01:00
Alexander Larsson
26c2bb1b81 lib: Add xdg_app_bundle_ref_get_installed_size() 2016-02-25 21:34:44 +01:00
Alexander Larsson
0e1d83e94c lib: Add XdgAppBundleRef api to get appdata and icons 2016-02-25 20:12:04 +01:00
Alexander Larsson
6c5e1a8a92 Fix some compiler warning (unused vars) 2016-02-25 16:09:49 +01:00
Alexander Larsson
382ae396b3 lib: Add xdg_app_installation_install_bundle 2016-02-25 16:05:13 +01:00
Alexander Larsson
69052c7d9a lib: Add XdgAppBundleRef 2016-02-24 14:44:16 +01:00
Alexander Larsson
ca4187ac27 Fix typos in header 2016-02-24 13:48:03 +01:00
Alexander Larsson
3d18255ba3 Add xdg_app_installation_get_remote_by_name 2016-02-18 11:40:48 +01:00
Alexander Larsson
e0b08161d7 lib: Add xdg_app_installation_get_path 2016-02-16 16:30:33 +01:00
Alexander Larsson
ac851cae9e lib: Return GBytes from xdg_app_installed_ref_load_metadata()
This is an ABI break, but nothing uses this yet.
2016-02-16 16:11:01 +01:00
Alexander Larsson
93006c5a40 Update exports on uninstall via library too 2016-02-09 16:17:02 +01:00
Richard Hughes
79aacf0640 lib: Fix crash during uninstall 2016-02-03 11:00:25 +01:00
Alexander Larsson
77ae6b1df0 lib: Fix up doc details 2016-01-28 11:37:35 +01:00
Alexander Larsson
fba7408d53 lib: Add some missing docs 2016-01-28 11:36:07 +01:00
Sam Thursfield
68c0e04adc Fix some misc. gtk-doc warnings 2016-01-28 11:26:29 +01:00
Sam Thursfield
66cdd7b197 Document the structs in libxdg-app 2016-01-28 11:26:12 +01:00
Sam Thursfield
dcf1df2454 Complete documentation for XdgAppInstallation 2016-01-28 11:25:50 +01:00
Sam Thursfield
5c847d54fa Avoid gtk-doc warnings: multiple ID for constraint linkend
This fixes the huge number of gtk-doc warnings that look like this:

    Warning: multiple "IDs" for constraint linkend: XdgAppRef

Based on:

    https://mail.gnome.org/archives/commits-list/2010-September/msg00222.html
2016-01-28 11:25:34 +01:00
Alexander Larsson
7940a773ef Always build libxmlapp 2016-01-22 22:19:52 +01:00
Alexander Larsson
f363fddd32 lib: Properly finishe OstreeAsyncProgress objects 2016-01-22 15:14:36 +01:00
Alexander Larsson
42f069dd5f lib: Add xdg_app_ref_parse 2016-01-20 17:11:14 +01:00
Alexander Larsson
8da9d592ba appstream: Add timestamp which is updated each time the appstream is pulled 2016-01-20 15:14:01 +01:00
Alexander Larsson
df44834b0c Revert "lib: Allow passing NULL for remote name in update_appstream"
This reverts commit 9a185947a3.

This was problematic wrt how partial errors are reported
2016-01-19 22:06:06 +01:00
Alexander Larsson
9a185947a3 lib: Allow passing NULL for remote name in update_appstream 2016-01-19 21:59:43 +01:00
Alexander Larsson
388d3ce500 lib: update_appstream - work around main context issue 2016-01-19 18:57:19 +01:00
Alexander Larsson
1d89c2fcab lib: Add xdg_app_remote_get_appstream_dir 2016-01-19 15:18:44 +01:00
Alexander Larsson
2bede34952 lib: Add getter for installed size on InstalledRef 2016-01-19 15:05:06 +01:00
Alexander Larsson
2abe3ff911 Fix possible read of uninitialized variable 2016-01-19 12:38:03 +01:00
Alexander Larsson
de7e19e40f The plural of appdata is appstream 2016-01-18 21:06:42 +01:00
Alexander Larsson
22b30f7074 lib: Add xdg_app_installation_update_appdata_sync 2016-01-15 16:15:25 +01:00
Alexander Larsson
a1b5bb1507 xdg_app_installation_list_remote_refs_sync: Don't crash on weird refs 2016-01-15 14:53:34 +01:00
Alexander Larsson
78601a42ce lib: xdg_app_installation_fetch_remote_size_sync 2016-01-14 16:45:44 +01:00
Alexander Larsson
f7a1fdaa99 xdg-app: Deprecate install/update/uninstall-app/runtime
We just have install/updata/uninstall and have --app and --runtime
options if you really want to specify the type. Otherwise we just
automatically chose the right thing.
2016-01-13 15:34:08 +01:00
Alexander Larsson
1934562ca2 run: Be more flexible with --runtime option, and add --runtime-version
This makes it easier to experiment with running an app with a
different runtime.
2016-01-12 09:57:20 +01:00
Alexander Larsson
25ef0aaeae lib: Add xdg_app_installation_create_monitor
This just returns a new file monitor for the .changes file.
2015-12-21 11:13:00 +01:00
Alexander Larsson
cd490d12a7 XdgAppDir: Touch .changes file each time something changes 2015-12-21 11:12:25 +01:00
Alexander Larsson
ea543c8f93 lib/app: Add support for repo priorities
New repos default to prio 1, bundle repos default to prio 0.
Listing repos returns in sorted order, with add order as secondary
sort key.
2015-12-21 10:28:15 +01:00
Alexander Larsson
2f74965935 lib: Add cancellable to Installation constructors 2015-12-18 14:20:28 +01:00
Alexander Larsson
fdc9b62988 lib: Always initialize the repo on Installation creation
This means we can fail if the repo doesn't exist yet and we have
no write rights.
2015-12-18 12:27:26 +01:00
Alexander Larsson
feed03c284 lib: Expose latest_commit on installed app and let you use it
When updating you can pass flags to not deploy and to not pull.
2015-12-18 12:14:57 +01:00
Alexander Larsson
41b3db5e01 lib: Add xdg_app_installation_list_installed_refs_for_update 2015-12-17 21:37:30 +01:00
Alexander Larsson
e6509ff11c lib: Add xdg_app_ref_format_ref 2015-12-17 21:37:14 +01:00
Alexander Larsson
3087186a36 lib: Make list_remotes return a GPtrArray 2015-12-17 21:07:52 +01:00
Alexander Larsson
6a507970c5 lib: Move all sync operations from XdgAppRemote to XdgAppInstallation
Its much easier to handle locking etc when all the i/o operations
are on XdgAppInstallation, and the other objects are pure data carriers.
2015-12-17 20:51:59 +01:00
Alexander Larsson
874fce2b77 lib: Move app launching to XdgAppInstallation 2015-12-17 20:34:25 +01:00
Alexander Larsson
e7903a8033 lib: Move fetch_metadata_sync from RemoteRef to Remote
We want to make the Ref objects pure data storage
2015-12-17 20:19:27 +01:00
Alexander Larsson
7da16de205 lib: get_current => get_is_current 2015-12-17 20:10:10 +01:00