I want to develop demo of using Provisioning property in JSON format. For this I need JSON parser but when I use JSON Glib I am getting conflicts

In file included from /usr/include/glib-2.0/gio/gio.h:26:0,
                 from /usr/include/json-glib-1.0/json-glib/json-generator.h:32,
                 from /usr/include/json-glib-1.0/json-glib/json-glib.h:32,
                 from src/service.c:33:
/usr/include/glib-2.0/gio/giotypes.h:546:47: error: conflicting types for ‘GDBusProxy’
 typedef struct _GDBusProxy                    GDBusProxy;
In file included from src/service.c:30:0:

Does this means that I can not use JSON Glib?

Kind regards,

On Thu, Dec 7, 2017 at 12:07 AM, Vasyl Vavrychuk <vvavrychuk@gmail.com> wrote:
Hi, Daniel,

Thanks for feedback. Please find my comment below.

On Wed, Dec 6, 2017 at 11:12 PM, Daniel Wagner <wagi@monom.org> wrote:


        void LoadProvisioning(object service, string provisioning)
                Upload a provisioning for given service.

I think that besides setting this parameters to connman, we should provide possibility to get this parameter from connman. It is because user may want to find out what is current settings.

How about just to have in service api property

  string Provisioning.

which is in XML (or maybe JSON) format. This is very simple rework of what Lucio implemented and looks like it suits requirements of Marcel.

Kind regards,