jansson: json_pack with new format to verify required runtime version.

Add a json_pack at startup that will fail if runtime links against a
library older than jansson-2.11.

Change-Id: I101aebafe0f9407650206f7c552dad3d69377b5a
This commit is contained in:
Corey Farrell
2019-03-07 18:17:49 -05:00
parent afe16021ef
commit 641b6041c7
3 changed files with 21 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ typedef AST_JSON_INT_T ast_json_int_t;
/*!
* \brief Initialize the JSON library.
*/
void ast_json_init(void);
int ast_json_init(void);
/*!
* \brief Set custom allocators instead of the standard ast_malloc() and ast_free().