summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/scripting/engine.h')
-rw-r--r--src/mongo/scripting/engine.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/scripting/engine.h b/src/mongo/scripting/engine.h
index e61fde92774..ff6dd1b1616 100644
--- a/src/mongo/scripting/engine.h
+++ b/src/mongo/scripting/engine.h
@@ -38,7 +38,6 @@ typedef unsigned long long ScriptingFunction;
typedef BSONObj (*NativeFunction)(const BSONObj& args, void* data);
typedef std::map<std::string, ScriptingFunction> FunctionCacheMap;
-class DBClientWithCommands;
class DBClientBase;
class OperationContext;
@@ -264,10 +263,10 @@ public:
void setScopeInitCallback(void (*func)(Scope&)) {
_scopeInitCallback = func;
}
- static void setConnectCallback(void (*func)(DBClientWithCommands&)) {
+ static void setConnectCallback(void (*func)(DBClientBase&)) {
_connectCallback = func;
}
- static void runConnectCallback(DBClientWithCommands& c) {
+ static void runConnectCallback(DBClientBase& c) {
if (_connectCallback)
_connectCallback(c);
}
@@ -285,7 +284,7 @@ protected:
void (*_scopeInitCallback)(Scope&);
private:
- static void (*_connectCallback)(DBClientWithCommands&);
+ static void (*_connectCallback)(DBClientBase&);
};
void installGlobalUtils(Scope& scope);