Rework status table to be less dynamically generated.
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Tue, 14 Feb 2012 12:03:46 +0000 (13:03 +0100)
committerMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Tue, 14 Feb 2012 12:34:44 +0000 (13:34 +0100)
commit885243e05467e79e2375b3febe7904053ab45dfc
tree2eb90674c28bf54126beb7c4e1e1d11f016066c9
parentdae3073aaa8b7feb1c844fdaf711f79141b9cc65
Rework status table to be less dynamically generated.

* src/Makefile.am (EXTRA_DIST): Remove mkstatus.
(BUILT_SOURCE, MOSTLYCLEANFILES): Remove.
(main_sources): Remove status-table.h, extra-stati.h.
Add status-table.c.
(status-table.h): Remove rules for built source.
* src/decrypt.c: Don't include extra-stati.h.
* src/engine-gpg.c: Don't include status-table.h.
(status_cmp): Remove function.
(read_status): Use _gpgme_parse_status.
* src/engine-gpgsm.c: Don't include status-table.h.
(status_cmp, parse_status): Remove function.
(gpgsm_assuan_simple_command, status_handler): Use _gpgme_parse_status.
* src/engine-uiserver.c: Don't include status-table.h.
(status_cmp, parse_status): Remove function.
(uiserver_assuan_simple_command, status_handler): Use
_gpgme_parse_status.
* src/gpgme.h.in (gpgme_status_code_t): Add
GPGME_STATUS_DECRYPTION_INFO.
* src/util.h (_gpgme_status_init,_gpgme_parse_status): New declaration.
* src/status-table.c: New file.
* src/extra-stati.h, src/mkstatus: Files removed.
* version.c (do_subsystem_inits): Call _gpgme_status_init.
src/Makefile.am
src/decrypt.c
src/engine-gpg.c
src/engine-gpgsm.c
src/engine-uiserver.c
src/extra-stati.h [deleted file]
src/gpgme.h.in
src/mkstatus [deleted file]
src/status-table.c [new file with mode: 0644]
src/util.h
src/version.c