new interface: curl -X PUT http://_providers/PROVIDER/_set_primary
commite8699f536bb5cd49f8e20db1615221263938de07
authorJim Meyering <meyering@redhat.com>
Fri, 17 Dec 2010 16:07:47 +0000 (17 17:07 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 23 Dec 2010 21:39:06 +0000 (23 22:39 +0100)
tree7a75b24b0e8bfe4b711e152b35f4da3c12e7a2d3
parent55be76211cca12e07a644809272649176f336f0e
new interface: curl -X PUT _providers/PROVIDER/_set_primary

* rest.c: Include <errno.h>.
(proxy_set_primary): New function.
(parse_url): Handle new type: URL_PROVIDER_SET_PRIMARY.
* setup.c (set_main_provider): New function.
* setup.h (set_main_provider): Declare it.
* t/basic: Exercise the new functionality.
rest.c
setup.c
setup.h
t/basic