[gnome-games/wip/aplazas/781334-refactor-playstation: 3/4] gameinfo: Add GameinfoDoc.get_disc_set_ids_for_disc_id()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/aplazas/781334-refactor-playstation: 3/4] gameinfo: Add GameinfoDoc.get_disc_set_ids_for_disc_id()
- Date: Fri, 5 May 2017 15:21:02 +0000 (UTC)
commit 39885a0a4520e842bca648cbf61a115cafee0892
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Apr 14 15:47:17 2017 +0200
gameinfo: Add GameinfoDoc.get_disc_set_ids_for_disc_id()
This will be used in the next commit.
src/gameinfo/gameinfo-doc.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gameinfo/gameinfo-doc.vala b/src/gameinfo/gameinfo-doc.vala
index 3eb74d2..df10a14 100644
--- a/src/gameinfo/gameinfo-doc.vala
+++ b/src/gameinfo/gameinfo-doc.vala
@@ -62,4 +62,10 @@ public class Games.GameinfoDoc : Object {
return xml_doc.count_nodes (expr);
}
+
+ public string[] get_disc_set_ids_for_disc_id (string disc_id) throws Error {
+ var expr = "/gameinfo/games/game/discs[disc[@id = \"" + disc_id + "\"]]/disc/@id";
+
+ return xml_doc.get_contents (expr);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]