mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
stasis: Fix ABI between DEVMODE and non-DEVMODE.
Create compatibility stubs for maximum ABI compatibility. ASTERISK-28212 #close Change-Id: I872c04842ab6b61e9dd6d37e4166bc619aa20626
This commit is contained in:
@@ -614,9 +614,9 @@ void stasis_subscription_cb_noop(void *data, struct stasis_subscription *sub, st
|
||||
* has been subscribed. This occurs immediately before accepted message
|
||||
* types can be set and the callback must expect to receive it.
|
||||
*/
|
||||
#ifdef AST_DEVMODE
|
||||
struct stasis_subscription *__stasis_subscribe(struct stasis_topic *topic,
|
||||
stasis_subscription_cb callback, void *data, const char *file, int lineno, const char *func);
|
||||
#ifdef AST_DEVMODE
|
||||
#define stasis_subscribe(topic, callback, data) __stasis_subscribe(topic, callback, data, __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
||||
#else
|
||||
struct stasis_subscription *stasis_subscribe(struct stasis_topic *topic,
|
||||
@@ -649,9 +649,9 @@ struct stasis_subscription *stasis_subscribe(struct stasis_topic *topic,
|
||||
* has been subscribed. This occurs immediately before accepted message
|
||||
* types can be set and the callback must expect to receive it.
|
||||
*/
|
||||
#ifdef AST_DEVMODE
|
||||
struct stasis_subscription *__stasis_subscribe_pool(struct stasis_topic *topic,
|
||||
stasis_subscription_cb callback, void *data, const char *file, int lineno, const char *func);
|
||||
#ifdef AST_DEVMODE
|
||||
#define stasis_subscribe_pool(topic, callback, data) __stasis_subscribe_pool(topic, callback, data, __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
||||
#else
|
||||
struct stasis_subscription *stasis_subscribe_pool(struct stasis_topic *topic,
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
* \return \c NULL on error.
|
||||
* \since 12
|
||||
*/
|
||||
#ifdef AST_DEVMODE
|
||||
struct stasis_subscription *internal_stasis_subscribe(
|
||||
struct stasis_topic *topic,
|
||||
stasis_subscription_cb callback,
|
||||
@@ -70,13 +69,5 @@ struct stasis_subscription *internal_stasis_subscribe(
|
||||
const char *file,
|
||||
int lineno,
|
||||
const char *func);
|
||||
#else
|
||||
struct stasis_subscription *internal_stasis_subscribe(
|
||||
struct stasis_topic *topic,
|
||||
stasis_subscription_cb callback,
|
||||
void *data,
|
||||
int needs_mailbox,
|
||||
int use_thread_pool);
|
||||
#endif
|
||||
|
||||
#endif /* STASIS_INTERNAL_H_ */
|
||||
|
||||
@@ -55,9 +55,9 @@ struct stasis_message_router;
|
||||
*
|
||||
* \since 12
|
||||
*/
|
||||
#ifdef AST_DEVMODE
|
||||
struct stasis_message_router *__stasis_message_router_create(
|
||||
struct stasis_topic *topic, const char *file, int lineno, const char *func);
|
||||
#ifdef AST_DEVMODE
|
||||
#define stasis_message_router_create(topic) __stasis_message_router_create(topic, __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
||||
#else
|
||||
struct stasis_message_router *stasis_message_router_create(
|
||||
@@ -77,9 +77,9 @@ struct stasis_message_router *stasis_message_router_create(
|
||||
*
|
||||
* \since 12.8.0
|
||||
*/
|
||||
#ifdef AST_DEVMODE
|
||||
struct stasis_message_router *__stasis_message_router_create_pool(
|
||||
struct stasis_topic *topic, const char *file, int lineno, const char *func);
|
||||
#ifdef AST_DEVMODE
|
||||
#define stasis_message_router_create_pool(topic) __stasis_message_router_create_pool(topic, __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
||||
#else
|
||||
struct stasis_message_router *stasis_message_router_create_pool(
|
||||
|
||||
Reference in New Issue
Block a user