]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app.h: Move declaration of ast_getdata_result before its first use
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 10 Jul 2023 13:52:32 +0000 (07:52 -0600)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 13 Jul 2023 11:30:20 +0000 (05:30 -0600)
commitfded9fc8a412ed8a300bde910f8fa19cd8db0785
treefd7499d5a57bd7052015471e4fe5146c6979efd2
parentd83ce210b29c593e0a31dc716557b04050ea9f9b
app.h: Move declaration of ast_getdata_result before its first use

The ast_app_getdata() and ast_app_getdata_terminator() declarations
in app.h were changed recently to return enum ast_getdata_result
(which is how they were defined in app.c).  The existing
declaration of ast_getdata_result in app.h was about 1000 lines
after those functions however so under certain circumstances,
a "use before declaration" error was thrown by the compiler.
The declaration of the enum was therefore moved to before those
functions.

Resolves: #200
include/asterisk/app.h