summaryrefslogtreecommitdiff
path: root/docs/apibuild.py
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2016-04-25 14:23:04 +0200
committerAndrea Bolognani <abologna@redhat.com>2016-04-26 09:20:12 +0200
commitccaceab7bdcc5abe215444daac31951591ba6713 (patch)
treec388828ea1f742bc7934fbac499e89af6e20be21 /docs/apibuild.py
parent22a592a4fe01fff1a86e58f0d3e3f66c1a7e707e (diff)
downloadlibvirt-ccaceab7bdcc5abe215444daac31951591ba6713.tar.gz
apibuild: Add index.warning() method
This method is used in eg. index.merge(), but is not defined anywhere. The implementation has been copied from docBuilder.
Diffstat (limited to 'docs/apibuild.py')
-rwxr-xr-xdocs/apibuild.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/apibuild.py b/docs/apibuild.py
index 648036ff58..b1a9d41812 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -240,6 +240,11 @@ class index:
self.references = {}
self.info = {}
+ def warning(self, msg):
+ global warnings
+ warnings = warnings + 1
+ print msg
+
def add_ref(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None):
if name[0:2] == '__':
return None