]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/conf.py: define CEPH_RADOS_API for breathe
authorKefu Chai <kchai@redhat.com>
Fri, 28 Aug 2020 10:20:13 +0000 (18:20 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Aug 2020 12:35:21 +0000 (20:35 +0800)
otherwise we could have following errors:

Invalid C declaration: Expected identifier in nested name, got keyword: int [error at 18]
      CEPH_RADOS_API int rados_aio_append (rados_ioctx_t io, const char *oid, rados_completion_t completion, const char *buf, size_t len)
      ------------------^

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/conf.py

index 34c91bf6cd4b5c3ca0a09f68269448ab886f111a..1eb3439ddd7a4290ddbe8180a947cea7e422606a 100644 (file)
@@ -90,6 +90,11 @@ breathe_projects_source = {
              ["rados_types.h", "librados.h"])
 }
 breathe_domain_by_extension = {'py': 'py', 'c': 'c', 'h': 'c', 'cc': 'cxx', 'hpp': 'cxx'}
+breathe_doxygen_config_options = {
+    'EXPAND_ONLY_PREDEF': 'YES',
+    'MACRO_EXPANSION': 'YES',
+    'PREDEFINED': 'CEPH_RADOS_API= '
+}
 
 # the docs are rendered with github links pointing to master. the javascript
 # snippet in _static/ceph.js rewrites the edit links when a page is loaded, to