]> 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:45:06 +0000 (05:45 -0600)
commit6cfafdeb37cfbe836627484ce4741f13bc00609e
tree73bdcdfe693e1fdf119f899e23f12260918b0c3f
parent9b3abda528a8083e8205ae2e1e0417d408369adc
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