On Fri, Aug 06, 2021 at 10:02:18AM -0500, Denis Kenzior wrote: > > Yeah ok - what name do you suggest? > > So there's a few things you can do actually: > - We do have g_at_result_next_unquoted_string. You could try using that to > obtain the negative <rsrp> and then just sscanf/strtol or whatever to > convert it. > - We also have g_at_result_iter_raw_line() which can give you the raw result > line. It should be trivial to come up with some sscanf magic to parse the > result. > - Just add a new g_at_result_iter_next_negative_number. Or if you come up > with a more descriptive word than negative, feel free.
I would go with g_at_result_iter_next_signed_number() to reflect that the value isn't necessarily negative. // Martin _______________________________________________ ofono mailing list -- ofono@ofono.org To unsubscribe send an email to ofono-le...@ofono.org