| 1 | /* |
| 2 | * Asterisk -- An open source telephony toolkit. |
| 3 | * |
| 4 | * Copyright (C) 2022, Sangoma Technologies Corporation |
| 5 | * |
| 6 | * George Joseph <[email protected]> |
| 7 | * |
| 8 | * See http://www.asterisk.org for more information about |
| 9 | * the Asterisk project. Please do not directly contact |
| 10 | * any of the maintainers of this project for assistance; |
| 11 | * the project provides a web site, mailing lists and IRC |
| 12 | * channels for your use. |
| 13 | * |
| 14 | * This program is free software, distributed under the terms of |
| 15 | * the GNU General Public License Version 2. See the LICENSE file |
| 16 | * at the top of the source tree. |
| 17 | */ |
| 18 | |
| 19 | #include "asterisk.h" |
| 20 | #include "geoloc_private.h" |
| 21 | |
| 22 | static const char *result_names[] = { |
| 23 | "Success", |
| 24 | "Missing shape type", |
| 25 | "Invalid shape type", |
| 26 | "Invalid variable name", |
| 27 | "Not enough variables", |
| 28 | "Too many variables", |
| 29 | "Invalid CRS", |
| 30 | "Invalid CRS for shape", |
| 31 | "Invalid variable value", |
| 32 | }; |
| 33 | |
| 34 | const char *ast_geoloc_validate_result_to_str(enum ast_geoloc_validate_result result) |
| 35 | { |
| 36 | return result_names[result]; |
| 37 | } |
| 38 |