]> 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>
Mon, 1 Nov 2021 16:08:39 +0000 (00:08 +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>
(cherry picked from commit cf357e17ab5cbd9af4f67c51117b5f368cb9913f)

doc/conf.py

index 7c84eaf84b15aa67bfc50888f787e7f4ca7a3d65..c5638baa4f11df01fef160f35e0e582d3e9464da 100644 (file)
@@ -99,6 +99,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