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
Alexander Larsson
dd7f18aaf2
lib: Always use "branch" not "version" in API
...
"version" is really confusin
2015-12-17 20:00:48 +01:00
Alexander Larsson
4ea61d3830
lib: Return GPtrArray from xdg_app_remote_list_refs_sync
2015-12-17 19:57:01 +01:00
Alexander Larsson
b9c582bc75
lib: Change how listing installed refs work
...
Now we return a GPtrArray, and the main call returns both apps
and runtimes, and a new _by_kind version lets you get only a specific one.
2015-12-17 19:50:40 +01:00
Alexander Larsson
570ba8b55f
Add --enable-libxdgapp configure flag and disable lib by default
2015-12-16 15:27:42 +01:00
Alexander Larsson
2175ffa77d
Add missing EXTRA_DIST to pass distcheck
2015-12-16 13:22:04 +01:00
Alexander Larsson
9c77b86d3d
lib: Fix return value type warnings
2015-12-16 13:03:55 +01:00
Alexander Larsson
8b5208a995
Add lock file for each xdg-app dir.
...
This protects the stuff outside the repo (such as deploys, exports,
active checkout, current branch, etc). However, we rely on ostree
concurrency handling for handling concurrent pulls and prunes.
For reading (e.g. list-apps, etc), we don't do any locking, as these
all writes are essentially updated atomically (last change is atomic) and
any once you return such information it could be out of date anyway.
2015-12-15 16:20:28 +01:00
Alexander Larsson
8f700b9aca
lib: Use the new installed/not-installed custom GErrors
2015-12-15 15:33:23 +01:00
Alexander Larsson
856c8210a9
lib: Add custom GError codes
2015-12-15 15:27:37 +01:00
Alexander Larsson
be4f0d86d8
common: Add and use xdg_app_dir_deploy_update()
2015-12-15 15:21:00 +01:00
Alexander Larsson
423a5af15b
lib: Add xdg_app_installation_uninstall
2015-12-15 15:07:41 +01:00
Alexander Larsson
604f71937a
Use xdg_app_compose_ref helper
2015-12-15 14:58:12 +01:00
Alexander Larsson
43a09b3646
Fix unused variable warnings
2015-12-15 14:34:52 +01:00
Alexander Larsson
4342959f6d
lib: Add xdg_app_installation_update
2015-12-15 12:43:56 +01:00
Alexander Larsson
9285d055ab
lib: Add xdg_app_installation_install
2015-12-15 12:26:59 +01:00