Cleanup async client APIs.
This commit is contained in:
@@ -11,8 +11,7 @@ set(SRCS
|
||||
|
||||
add_executable(${TARGET_NAME} ${SRCS})
|
||||
|
||||
target_link_libraries(${TARGET_NAME} webcc pugixml ${Boost_LIBRARIES})
|
||||
target_link_libraries(${TARGET_NAME} "${CMAKE_THREAD_LIBS_INIT}")
|
||||
target_link_libraries(${TARGET_NAME} ${EXAMPLE_COMMON_LIBS} pugixml)
|
||||
|
||||
# Install VLD DLLs to build dir so that the example can be launched from
|
||||
# inside VS.
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "example/common/book.h"
|
||||
|
||||
class BookClient {
|
||||
public:
|
||||
public:
|
||||
BookClient(const std::string& host, const std::string& port);
|
||||
|
||||
int code() const { return code_; }
|
||||
@@ -28,7 +28,7 @@ class BookClient {
|
||||
// Delete a book by ID.
|
||||
bool DeleteBook(const std::string& id);
|
||||
|
||||
private:
|
||||
private:
|
||||
// Call with 0 parameter.
|
||||
bool Call0(const std::string& operation, std::string* result_str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user