fenek/riak-c-driver — pull request #4 by dhull (2011-12-15 23:59:45+00:00)
Title: Protocol buffers conversion, packaging, GLib error handling

I have adopted riak-c-driver for deployment in a C application that writes JSON data to a Riak database, and these commits cover the changes that I made for that work.

I converted the record get/put code to use protocol buffers. I wanted to use binary keys in my application, so I added functions that take a length parameter because my keys might contain NUL bytes.

I packaged the code with the GNU autotools, and added a pkgconfig file. I added support for building RPMs (We're using CentOS).

I changed the code to use GLib's GError for error reporting. I updated the code toto use the GLib memory allocation functions and got rid of all fixed-length buffers.

I rewrote the riak_exec_op code to use fewer system calls.