From d76e6862cc21d79802f04386c22624248c06c6e4 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 5 Jan 2013 16:45:04 +0100 Subject: [PATCH] Added tag accept to collection parsing. --- .anjuta_sym_db.db | Bin 70656 -> 70656 bytes src/collection.c | 7 +++++++ 2 files changed, 7 insertions(+) diff --git a/.anjuta_sym_db.db b/.anjuta_sym_db.db index 354436da82e164a92e99eff5ee871332cde3b139..3df70f8af9a33da2d67a8f6727c6e16969604c6b 100644 GIT binary patch delta 1983 zcmZWqeN0qG5TBWS@7|pr0(v4RoE+etRE^q-Rz1%P)|2{CZEdYh6H}2`ixHs+O;Mnn z`bX2RfZO)0ABojgv|@`sL9G>HA{anH6I)}VQ4{^6X(jlFNsG30-X74J-n}PV(bwFaT@pnr5Ow=;vi(f6%Cu*KB$%MLOS<~(`p!?tXv7R_v*96TI8eG=o?RMRO%YMxh{8zT- z56yr}KFt$|$r`R11f6Ey?t{AU!X|0#Pa_`u`xlNHskz-$xUO*Rx{};imlkX;g$^^a zf4dkT4@ZEX`<#X#zKeVDDh;Ov^fv7h_o$0{M7C(=6GzM=-~3Ei!0dc^zAiI0#pXtK znU|lxuDH~A+VhFSq}hEi7VeQ)B!|^!xWsJwmd?;Efucs3qCngdx7byUOJstJ3+kz# zd9Qvf;au7Oz0bE(tp1OJSg0oPx|?%0u=PynkXPzmiQ)!02i^GfFp_+?b@a&MlA_{u zC8gyCCPR0I9*l`4BWE|@I)kT&Wl`%G=aAk+Xp(o@CY)%{G=Dl&0)=Q5Z6F`+rEOG8 zhv5P2L2KbOT*Dn)-t(pRq?covu6aZV<<$djy((1%EzV`_qgSSgfSTFgFWgv>EM}lg zKj@ObpUlM3az&%h%D%qUE5a!E^`z=s6j!@@lw8y1Ft;~WjhI9eVH9pe+JhUZ1+U_# z6o2y5InUxZdvd{lI(rxOw{H=J)_9i5EO{YdYA!^pes`k4WP%h$fDbDIb9DZQ8L$N zD|E`jwoFGEw2adO4n&!EV~iYs@lNV6oC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U|CMzhVRo_3eoSpTQ>G9-VH$^jV9SCBoJ+3+!?K4^hFaHOQOAmo8(sB{>Kyjjj$kk zFQE^Edf!b?G(?yaoklFe=I8>V-yz2}J=%a+itXC-hdZhf%ii536-O9@Msni~mOqpx RLz^5bG;)2H_=pRg{{bh7cRv6C diff --git a/src/collection.c b/src/collection.c index 88e2797..43da539 100644 --- a/src/collection.c +++ b/src/collection.c @@ -51,6 +51,7 @@ struct _GappCollectionPrivate { gchar *href; AtomText *title; + GSList *accept; }; G_DEFINE_TYPE (GappCollection, gapp_collection, TYPE_ATOM_COMMON) @@ -83,6 +84,9 @@ gapp_collection_class_init (GappCollectionClass *klass) static void gapp_collection_init (GappCollection *collection) { + GappCollectionPrivate *priv = GAPP_COLLECTION_GET_PRIVATE (collection); + + priv->accept = NULL; } /** @@ -139,6 +143,7 @@ GappCollection } gapp_collection = gapp_collection_new (href); + priv = GAPP_COLLECTION_GET_PRIVATE (gapp_collection); title = NULL; xpcontext = xmlXPathNewContext (xnode->doc); @@ -174,6 +179,8 @@ GappCollection { for (i = 0; i < xpresult->nodesetval->nodeNr; i++) { + g_message ("Accept found: %s", xmlNodeGetContent (xpresult->nodesetval->nodeTab[i])); + priv->accept = g_slist_append (priv->accept, xmlNodeGetContent (xpresult->nodesetval->nodeTab[i])); } } -- 2.49.0