mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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.
This commit is contained in:
parent
22a592a4fe
commit
ccaceab7bd
@ -240,6 +240,11 @@ class index:
|
|||||||
self.references = {}
|
self.references = {}
|
||||||
self.info = {}
|
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):
|
def add_ref(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None):
|
||||||
if name[0:2] == '__':
|
if name[0:2] == '__':
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user