poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master is broken due to latest changes to pk-mi-json


From: Mohammad-Reza Nabipoor
Subject: Re: master is broken due to latest changes to pk-mi-json
Date: Fri, 26 Nov 2021 17:35:46 +0330


On Fri, Nov 26, 2021 at 05:19:40PM +0330, Mohammad-Reza Nabipoor wrote:
> 
> int json_object_equal(struct json_object* jso1, struct json_object* jso2)
> {
>       if (jso1 == jso2)
>               return 1;
> 
>       if (!jso1 || !jso2)
>               return 0;
> 
>       if (jso1->o_type != jso2->o_type)
>               return 0;
> 
>       switch(jso1->o_type) {


Unfortunately, we don't have access to members of `struct json_object`;
it's an opaque type.

I think we should implement the logic using user-visible API.
It's not that complicated.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]