mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Remove unneeded uses of optional_api providers.
A few cases exist where headers of optional_api provders are included but not needed. This causes unneeded calls to ast_optional_api_use. * Don't include optional_api.h from sip_api.h. * Move 'struct ast_channel_monitor' to channel.h. * Don't include monitor.h from chan_sip.c, channel.c or features.c. The move of struct ast_channel_monitor is needed since channel.c depends on it. This has no effect on users of monitor.h since channel.h is included from monitor.h. ASTERISK-25051 #close Reported by: Corey Farrell Change-Id: I53ea65a9fc9693c89f8bcfd6120649bfcfbc3478
This commit is contained in:
@@ -66,7 +66,6 @@ ASTERISK_REGISTER_FILE()
|
||||
#include "asterisk/utils.h"
|
||||
#include "asterisk/adsi.h"
|
||||
#include "asterisk/devicestate.h"
|
||||
#include "asterisk/monitor.h"
|
||||
#include "asterisk/audiohook.h"
|
||||
#include "asterisk/global_datastores.h"
|
||||
#include "asterisk/astobj2.h"
|
||||
|
Reference in New Issue
Block a user