summaryrefslogtreecommitdiff
path: root/include/asterisk.h
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-03-30 19:28:18 -0400
committerCorey Farrell <git@cfware.com>2017-03-30 22:54:01 -0500
commitc7015508038a55b3b9ff61a7ffa31a8d463e20df (patch)
tree3a0c2fcac6a45fec97312d1e3e3f9216af1b625b /include/asterisk.h
parentf040eb05020f8047389cb4c6f08069bc530182bf (diff)
Forward declare 'struct ast_json' in asterisk.h
The ast_json structure is used in many Asterisk headers and is often the only part of json.h used. This adds a forward declaration to asterisk.h and removes the include of json.h from many headers. The declaration has been left in endpoints.h and stasis.h to avoid problems with source files that use ast_json functions without directly including json.h. ari.h continues to include json.h as it uses enum ast_json_encoding_format. Change-Id: Id766aabce6bed56626d27e8d29f559b5e687b769
Diffstat (limited to 'include/asterisk.h')
-rw-r--r--include/asterisk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asterisk.h b/include/asterisk.h
index 041f177e6..39c7ae894 100644
--- a/include/asterisk.h
+++ b/include/asterisk.h
@@ -317,6 +317,7 @@ struct ast_module;
struct ast_variable;
struct ast_str;
struct ast_sched_context;
+struct ast_json;
/* Some handy macros for turning a preprocessor token into (effectively) a quoted string */
#define __stringify_1(x) #x