Re: [MM 0.6] Plumb up the SPN display-rule bits



On 03/09/2012 12:16 AM, Nathan Williams wrote:
> There's a bit of annoying fighting with gchar ** and gdbus's idea of
> constness, but it seems reasonable otherwise.

Just modify load_spdi_finish() (and parse_spdi()) to return a gchar **
(without any const); and then explicitly cast to (const gchar *const *)
or (gchar *const *) in mm_gdbus_sim_set_spdi():

gchar **val;

val = MM_SIM_GET_CLASS (ctx->self)->load_spdi_finish (self, res, &error);
mm_gdbus_sim_set_spdi (MM_GDBUS_SIM (self), (const gchar *const *)val);
g_strfreev (val);

That should do it.

-- 
Aleksander


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