Index: sphinxclient.c =================================================================== --- sphinxclient.c (revision 32) +++ sphinxclient.c (working copy) @@ -1814,6 +1814,11 @@ return unpack_int ( &p ); } +int sphinx_get_num_results(sphinx_client *client) +{ + return client->num_results; +} + // // $Id$ // Index: sphinxclient.h =================================================================== --- sphinxclient.h (revision 31) +++ sphinxclient.h (working copy) @@ -246,6 +246,8 @@ int sphinx_update_attributes ( sphinx_client * client, const char * index, int num_attrs, const char ** attrs, int num_docs, const uint64_t * docids, const uint64_t * values ); +int sphinx_get_num_results(sphinx_client *client); + ///////////////////////////////////////////////////////////////////////////// #ifdef __cplusplus