Re: NM dialup API



On Thu, 2007-04-19 at 20:07 +0200, Will Stephenson wrote:
> On Thursday 19 April 2007 17:30:34 Will Stephenson wrote:
> > In a{sa{sv}}, what does the middle 'a' mean?  Does the first string key
> > eg 'ip4-settings' point to an array of dicts containing those settings, and
> > not a single dict?  
> > Or is that first 's' the identifier of the Connection?  In that case what's
> > the outer array for?
> 
> I figured out how to parse the signature eventually - "a{...}" == "Hash" 
> therefore a{sa{sv}} is Hash of string to Hash of string to variant. :P

Well, really:

"an array of dicts of dicts"  (the a{sa{sv}} bit is the "dict of dicts")

The array is a list of Connection objects

Each Connection object is a dict of Settings objects

Each Settings object is a dict of key/value pairs for each well-defined
setting, like "ssid"="foobar".

Dan

> Will
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list




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