summaryrefslogtreecommitdiff
path: root/perl_dmod
diff options
context:
space:
mode:
Diffstat (limited to 'perl_dmod')
-rw-r--r--perl_dmod/Cstore/Cstore.xs7
-rw-r--r--perl_dmod/Cstore/typemap2
2 files changed, 4 insertions, 5 deletions
diff --git a/perl_dmod/Cstore/Cstore.xs b/perl_dmod/Cstore/Cstore.xs
index 4a726e7..ebef08f 100644
--- a/perl_dmod/Cstore/Cstore.xs
+++ b/perl_dmod/Cstore/Cstore.xs
@@ -25,7 +25,6 @@
#include <cstring>
#include <vector>
#include <string>
-#include <map>
/* currently use the UnionfsCstore implementation */
#include <cstore/unionfs/cstore-unionfs.hpp>
@@ -205,7 +204,7 @@ Cstore::cfgPathGetChildNodesStatus(STRVEC *vref)
PREINIT:
vector<string> arg_strvec;
CODE:
- map<string, string> ret_strstrmap;
+ Cstore::MapT<string, string> ret_strstrmap;
THIS->cfgPathGetChildNodesStatus(arg_strvec, ret_strstrmap);
OUTPUT:
RETVAL
@@ -263,7 +262,7 @@ Cstore::cfgPathGetChildNodesStatusDA(STRVEC *vref)
PREINIT:
vector<string> arg_strvec;
CODE:
- map<string, string> ret_strstrmap;
+ Cstore::MapT<string, string> ret_strstrmap;
THIS->cfgPathGetChildNodesStatusDA(arg_strvec, ret_strstrmap);
OUTPUT:
RETVAL
@@ -295,7 +294,7 @@ Cstore::getParsedTmpl(STRVEC *vref, bool allow_val)
PREINIT:
vector<string> arg_strvec;
CODE:
- map<string, string> ret_strstrmap;
+ Cstore::MapT<string, string> ret_strstrmap;
if (!THIS->getParsedTmpl(arg_strvec, ret_strstrmap, allow_val)) {
XSRETURN_UNDEF;
}
diff --git a/perl_dmod/Cstore/typemap b/perl_dmod/Cstore/typemap
index f1f6a82..6df545b 100644
--- a/perl_dmod/Cstore/typemap
+++ b/perl_dmod/Cstore/typemap
@@ -32,7 +32,7 @@ T_STRVEC_REF
T_STRSTRMAP_REF
HV *href = (HV *) sv_2mortal((SV *) newHV());
- map<string, string>::iterator it = ret_strstrmap.begin();
+ Cstore::MapT<string, string>::iterator it = ret_strstrmap.begin();
for (; it != ret_strstrmap.end(); ++it) {
const char *key = (*it).first.c_str();
const char *val = (*it).second.c_str();