18#ifdef FREECIV_HAVE_XML_REGISTRY
20#include <libxml/parser.h>
46 log_error(
_(
"XML-file has no root node <Freeciv>"));
54 log_error(
_(
"XML-file has no capabilities defined!"));
60 log_error(
_(
"XML-file has incompatible capabilities."));
76 while (current !=
NULL) {
98 if (
buf[0] ==
'"' &&
buf[
len - 1] ==
'"') {
104 log_error(
"Cannot parse token \"%s\"", content);
118 current = current->next;
bool has_capabilities(const char *us, const char *them)
#define log_normal(message,...)
#define log_error(message,...)
struct section_file * secfile_new(bool allow_duplicates)
void secfile_destroy(struct section_file *secfile)
struct section * secfile_section_new(struct section_file *secfile, const char *name)
bool entry_from_token(struct section *psection, const char *name, const char *tok)
struct section_file * secfile