diff options
author | Dave Brolley <brolley@redhat.com> | 2010-02-04 11:31:47 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2010-02-04 11:31:47 -0500 |
commit | 8155cc835adb286c456f30ebaa961508bc064e90 (patch) | |
tree | 3634a392b6e0ef15f9426928bb23f30f58546f29 /hash.h | |
parent | d2334a2233f4efd055dab021c603f7c046730a66 (diff) | |
parent | 23b7dbfaf1e9860f77b6bf1aa3da8610bf31b03c (diff) | |
download | systemtap-steved-8155cc835adb286c456f30ebaa961508bc064e90.tar.gz systemtap-steved-8155cc835adb286c456f30ebaa961508bc064e90.tar.xz systemtap-steved-8155cc835adb286c456f30ebaa961508bc064e90.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,7 @@ #include <string> #include <vector> +#include <sstream> +#include <fstream> extern "C" { #include <string.h> @@ -13,9 +15,11 @@ class hash { private: struct mdfour md4; + std::ostringstream parm_stream; public: hash() { start(); } + hash(const hash &base) { start(); parm_stream << base.parm_stream.str();} void start(); @@ -34,6 +38,7 @@ public: void add_file(const std::string& filename); void result(std::string& r); + std::string get_parms(); }; void find_hash (systemtap_session& s, const std::string& script); |