]> git.ipfire.org Git - thirdparty/asterisk.git/commit
realtime: Centralize some common realtime backend code 47/5047/3
authorSean Bright <sean.bright@gmail.com>
Tue, 21 Feb 2017 14:56:54 +0000 (09:56 -0500)
committerSean Bright <sean.bright@gmail.com>
Tue, 21 Feb 2017 16:53:17 +0000 (10:53 -0600)
commit6e6c96d713be2b745c4e033b6e5710dea72088df
treef112d117f05eaf4ea86b4c08317304ddaf20f0b0
parent144b09ab41274498637a6cd8601f653658ecca8b
realtime: Centralize some common realtime backend code

All of the realtime backends create artificial ast_categorys to pass
back into the core as query results. These categories have no filename
or line number information associated with them and the backends differ
slightly on how they create them. So create a couple helper macros to
help make things more consistent.

Also updated the call sites to remove redundant error messages about
memory allocation failure.

Note that res_config_ldap sets the category filename to the 'table name'
but that is not read by anything in the core, so I've dropped it.

Change-Id: I3a1fd91e0c807dea1ce3b643b0a6fe5be9002897
addons/res_config_mysql.c
include/asterisk/config.h
res/res_config_curl.c
res/res_config_ldap.c
res/res_config_odbc.c
res/res_config_pgsql.c
res/res_config_sqlite.c
res/res_config_sqlite3.c