Commit Graph

7 Commits

Author SHA1 Message Date
Jesse Williamson 109e6022be librados examples: link and include from current source tree by default.
Fixes #15100. The Makefile now by default links and includes from the
current source tree's librados and offers another option for building
examples against the system's.

Signed-off-by: Jesse Williamson <nerd.cpp@gmail.com>
2016-03-17 15:31:43 -07:00
youji 19d0a59c79 Fix Makefile in example/librados file.
Signed-off-by: You Ji <jiyou09@gmail.com>
2015-10-19 23:53:27 -07:00
Michal Jarzabek 2fea3a56a6 examples/librados/hello_world.cc:missing semicolon
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2015-09-26 14:45:22 +01:00
Brad Hubbard 26bcb362f4 Examples: hello_world.cc, content displayed after read is not null terminated.
Copy contents of bufferlist to a string before sending to stdout since a
bufferlist is not null terminated.

Fixes: #7822
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2015-09-15 18:58:44 +10:00
Jiaying Ren ca285d4d57 Fix typos in librados example code
Signed-off-by: Jiaying Ren <mikulely@gmail.com>
2015-06-17 23:47:09 +08:00
Adam Crume 10a476adfa examples: Add example for the librados C API
Simply copied and modified the C++ API example.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-08-21 10:57:28 -07:00
Greg Farnum 823435ce65 examples: add a librados/hello_world program
This is a simple program with lots of explanatory comments people
can use as a model for using librados.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-19 14:55:09 -07:00