login
Header Space

 
 

binary plist support

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <tech-kern@...>
Date: Saturday, October 6, 2007 - 4:25 pm

Hello,

I've implemented ${subj} for proplib:

  ftp://ftp.netbsd.org/pub/NetBSD/misc/freza/bplist-2007-10-06.diff

The binary encoding, which is rather size-efficient and supposedly very
fast as well (but I don't have numbers yet), is basically Apple bplist
format. But because Apple doesn't distinguish signed integers vs. unsigned,
the format differs slightly and uses different version number to avoid
confusion.

On the API side, binary encoding is created/parsed by the following
functions:

  bool prop_dictionary_binary_externalize(prop_dictionary_t, uint8_t **,
      size_t *);
  bool prop_dictionary_binary_externalize_to_file(prop_dictionary_t,
      const char *);
  prop_dictionary_t prop_dictionary_binary_internalize(uint8_t *, size_t);


and symetrically for prop_array* -- see the diff above for more
documentation.

Comments? I'd like to commit this ASAP as it's a vital prerequisity for
merging my SoC project.

	-- Jachym
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
binary plist support, Jachym Holecek, (Sat Oct 6, 4:25 pm)
Re: binary plist support, Jason Thorpe, (Tue Oct 16, 12:28 pm)
Re: binary plist support, Jachym Holecek, (Sat Oct 27, 11:59 am)
Re: binary plist support, Jachym Holecek, (Wed Oct 17, 4:02 am)
Re: binary plist support, Bill Stouder-Studenmund, (Tue Oct 9, 2:27 pm)
Re: binary plist support, Jachym Holecek, (Wed Oct 10, 3:24 am)
Re: binary plist support, Bill Stouder-Studenmund, (Wed Oct 10, 12:40 pm)
Re: binary plist support, Jachym Holecek, (Fri Oct 12, 4:21 am)
Re: binary plist support, Matt Thomas, (Sat Oct 6, 6:56 pm)
Re: binary plist support, Jachym Holecek, (Tue Oct 9, 8:36 am)
Re: binary plist support, Julio M. Merino Vidal, (Fri Oct 12, 3:02 pm)
Re: binary plist support, Jachym Holecek, (Tue Oct 9, 10:59 am)
speck-geostationary