Remove lcb_ prefix from static functions

Change-Id: I2440d4aa7adf1d9a903fe4dd58840c8ff7f6e338
Reviewed-on: http://review.couchbase.org/29744
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Fix dist target once again

* remove server-related header from cbsasl/src/client.c
* include example/instancepool/pool.h into tarball

Change-Id: Ifa29e138a3d3faef2f202431203b4be1edf8c9ef
Reviewed-on: http://review.couchbase.org/29761
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
bconf_io/server: use lcb_instance_config_error

For configuration errors, all code except bconf_io itself should use a
common path to handle this, as there is quite some boilerplate involved
in resetting the connection properly. Subsequent commits will travel
further down this path as well.

Change-Id: I2da18818c1c71b1c8c34ebb6d62bbbdce6be06c2
Reviewed-on: http://review.couchbase.org/29740
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
bconf: connect handler should call timeout handler on timeout

Change-Id: I74f157de1701ec725b3c1eb5c224d03e34f27602
Reviewed-on: http://review.couchbase.org/29743
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
bconf: move switch_to_backup_node to bconf_io

And make it static. This function is only used in bconf_io anyway.

Change-Id: I1f0a43de40436ca96a79aee75db9571f1e24ab65
Reviewed-on: http://review.couchbase.org/29741
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Call connection_error instead of close && switch

Makes things easier to follow. Added a 'NO_BREAKOUT' option which we
might want to handle later on

Change-Id: I6fcc99f55f9881fa626e85fe92249177a3de77e4
Reviewed-on: http://review.couchbase.org/29742
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Added explicit typecasting to libuv plugin to avoid msvc warnings.

libuv defines uv_buf_t's len field differently on windows then on
other platforms which causes a miss-match when building on
windows.

Change-Id: I00c65c8b84f47b3e64a3e01154e637e641579465
Reviewed-on: http://review.couchbase.org/29758
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Added support for building static library with MSVC.

Change-Id: I8dcb6d143527bcaca1df12c727516f8ee0b1b2a1
Reviewed-on: http://review.couchbase.org/29754
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>
Added explicit typecasting to avoid msvc compiler warnings.

Change-Id: I131e0b821e1ce7bdcdc6f871eb676bd64f1ae626
Reviewed-on: http://review.couchbase.org/29757
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
Removed call to iocp_initialize_winsock in IOCP plugin.

This is already called directly from the core

Change-Id: I1a0c5651a0763318e7032c9275d83a2d5ccd01c2
Reviewed-on: http://review.couchbase.org/29756
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Fix error in previous commit causing compiler warnings.

Change-Id: I1bc840220faecf440d97bbbd41cd296c2ecc693c
Reviewed-on: http://review.couchbase.org/29764
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Don't make mock tests conditional on --build-plugins

Change-Id: I94f5b21f48de037e8a0aad50dfef6869cb0d620a
Reviewed-on: http://review.couchbase.org/29763
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Add --enable-maintainer-mode

Maintainer mode enables --enable-werror --enable-warnings
--enable-debug, forces all plugins to be installed and forces all tests,
tools, and examples to be built

Change-Id: I2de15559f02ab453b6aeb3075ed2a131baee1617
Reviewed-on: http://review.couchbase.org/29767
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>