Skip to contentSkip to conversation

Rados example application for blkin

PATCH In review Andrew Shewmaker 1 participant 1 message Nov 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 5/6 Rados example application for blkin

This code is Marios', with the following exceptions:
- split out example from other tracing changes
- whitespace issues have been fixed
- Makefile cleans up the new example

---
 examples/librados/Makefile      |   5 +-
 examples/librados/hello_world.c | 107 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+), 2 deletions(-)
 create mode 100644 examples/librados/hello_world.c
examples/librados/Makefile +3 -2
index a40051f..c45eb60 100644
@@ -1,5 +1,6 @@
-all: hello_world.cc
+all: hello_world.cc hello_world.c
+	gcc hello_world.c -o hello -lrados -lblkin-front
 	g++ -g -c hello_world.cc -o hello_world.o
 	g++ -g hello_world.o -lrados -o librados_hello_world
 clean:
-	rm hello_world.o librados_hello_world
\ No newline at end of file
+	rm hello_world.o librados_hello_world hello
examples/librados/hello_world.c new file +107 -0

107 lines not on this page · raw message

Signature · 1 line
2.1.0