From e255c37eca94d4d9c23f689b473b106575b9e2fa Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 13 Feb 2013 03:20:52 +0200 Subject: some testing code --- proto_lib/api_protocol.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'proto_lib/api_protocol.h') diff --git a/proto_lib/api_protocol.h b/proto_lib/api_protocol.h index b18d2e7..bebd401 100644 --- a/proto_lib/api_protocol.h +++ b/proto_lib/api_protocol.h @@ -24,9 +24,16 @@ struct service_s struct cmd { std::string command, description; +#ifdef DEBUG + bool operator==(const cmd&); +#endif }; std::string service; std::list cmds; +#ifdef DEBUG + bool operator==(service_s&); + bool operator!=(service_s&); +#endif }; struct svc_cmd @@ -55,6 +62,7 @@ public: //client functions static packet *cli_make_init_packet(); //should be first packet to server static packet *cli_make_command_packet(std::string &service, std::string &command); + static packet *cli_make_command_packet(const char* service, const char* command); static packet *cli_make_request_services_packet(); static std::list *cli_extract_services(packet&); -- cgit v1.2.3