summaryrefslogtreecommitdiff
path: root/libhello/libhello/hello.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libhello/libhello/hello.hxx')
-rw-r--r--libhello/libhello/hello.hxx22
1 files changed, 12 insertions, 10 deletions
diff --git a/libhello/libhello/hello.hxx b/libhello/libhello/hello.hxx
index d9e41d9..f0fc49e 100644
--- a/libhello/libhello/hello.hxx
+++ b/libhello/libhello/hello.hxx
@@ -1,7 +1,6 @@
-// file: libhello/hello.hxx -*- C++ -*-
-
#pragma once
+#include <iosfwd>
#include <string>
#include <libformat/format.hxx>
@@ -12,18 +11,21 @@ namespace hello
{
// If you compare this interface to version 1.0, then you will notice that
// while it is API/source-compatible (the call via the old signature of
- // say() is still valid) it is not ABI/binary-compatible (say() now has an
- // extra argument and is inline).
+ // say_hello() is still valid) it is not ABI/binary-compatible (say_hello()
+ // now has an extra argument and is inline).
//
- // Notice also that inline say() now uses a type and calls a function from
- // format which means libformat is an "interface dependency" of libhello.
+ // Notice also that say_hello() now uses a type and calls (from its inline
+ // implementation) a function from format which means libformat is an
+ // "interface dependency" of libhello.
- LIBHELLO_EXPORT void
- say_formatted (const std::string& message);
+ LIBHELLO_SYMEXPORT void
+ say_hello_formatted (std::ostream&, const std::string& hello);
inline void
- say (const std::string& name, format::volume v = format::volume::normal)
+ say_hello (std::ostream& o,
+ const std::string& name,
+ format::volume v = format::volume::normal)
{
- say_formatted (format::message ("Hello", name, v));
+ say_hello_formatted (o, format::format_hello ("Hello", name, v));
}
}