The geo_search error codes provide information on search status.
Synopsis:
#include <geo_search.h>
typedef enum {
GEO_SEARCH_OK = 0
GEO_SEARCH_ERROR_INPUT = 1
GEO_SEARCH_ERROR_SERVER_OPEN = 0x1000
GEO_SEARCH_ERROR_SERVER_INVALID_REQUEST = 0x1001
GEO_SEARCH_ERROR_SERVER_RESPONSE = 0x1002
GEO_SEARCH_ERROR_SERVER_EMPTY = 0x1003
GEO_SEARCH_ERROR_REPLY = 0x2000
} geo_search_error_t;
Data:
- GEO_SEARCH_OK
- The search or other operation completed successfully.
- GEO_SEARCH_ERROR_INPUT
- Invalid parameters were passed to a geo_search function.
- GEO_SEARCH_ERROR_SERVER_OPEN
- Error occurred while opening the geo_search service.
- GEO_SEARCH_ERROR_SERVER_INVALID_REQUEST
- The remote server rejected the search request.
- GEO_SEARCH_ERROR_SERVER_RESPONSE
- The remote server returned an invalid response.
- GEO_SEARCH_ERROR_SERVER_EMPTY
- The remote server returned empty data.
- GEO_SEARCH_ERROR_REPLY
- An error occurred with the reply.
Library:
libgeo_search (For the qcc command, use the -l geo_search option to link against this library)
Description:
This enumeration defines the errors that are supported by this API.