* tta/C/api_for_swig/swig_interface.c
(txi_ext_element_add_index_entry), tta/C/main/document.c
(document_add_index), tta/C/parsetexi/indices.c (add_index)
(init_index_commands): move add_index_internal to document.c and
rename as document_add_index.  Update callers and use in
txi_ext_element_add_index_entry.

* tta/C/api_for_swig/swig_interface.c
(txi_ext_document_add_default_indices), tta/swig/texinfo.i
(new_document): add txi_ext_document_add_default_indices and call it
in SWIG interface new_document to have the default indices set-up
in SWIG.

* tta/C/api_for_swig/swig_interface.c
(txi_ext_document_set_merged_index)
(txi_ext_document_set_index_in_code), tta/swig/texinfo.i
(document_set_merged_index, document_set_index_in_code): add to set
index information in document, that cannot be set otherwise and is not
in tree.
7 files changed