summaryrefslogtreecommitdiffstats
path: root/src/test/test_c_headers.c
blob: 0f41966acae2233f43fb0c2759dfe1fe18c1005a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "include/cephfs/libcephfs.h"
#include "include/rados/librados.h"

#ifdef __cplusplus
#error "test invalid: only use C mode"
#endif

int main(int argc, char **argv)
{
	int ret;
	(void)ret; // squash unused warning

	/* librados.h */
	rados_t cluster;
	ret = rados_create(&cluster, NULL);

	/* libcephfs.h */
	struct ceph_mount_info *cmount;
	ret = ceph_create(&cmount, NULL);

	return 0;
}