summaryrefslogtreecommitdiff
path: root/src/plugger.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/plugger.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugger.h b/src/plugger.h
index 9a74029..ef0cb53 100644
--- a/src/plugger.h
+++ b/src/plugger.h
@@ -14,7 +14,7 @@
14#include "bu/list.h" 14#include "bu/list.h"
15#include <dlfcn.h> 15#include <dlfcn.h>
16#include "bu/exceptionbase.h" 16#include "bu/exceptionbase.h"
17#include "bu/fstring.h" 17#include "bu/string.h"
18#include <stddef.h> 18#include <stddef.h>
19 19
20namespace Bu 20namespace Bu
@@ -89,7 +89,7 @@ namespace Bu
89 class Plugger 89 class Plugger
90 { 90 {
91 public: 91 public:
92 typedef Bu::Hash<Bu::FString, PluginReg *> PluginHash; 92 typedef Bu::Hash<Bu::String, PluginReg *> PluginHash;
93 typedef Bu::Hash<ptrdiff_t, void *> InstHash; 93 typedef Bu::Hash<ptrdiff_t, void *> InstHash;
94 94
95 public: 95 public:
@@ -125,8 +125,8 @@ namespace Bu
125 hPlugin.insert( pInfo->sID, pReg ); 125 hPlugin.insert( pInfo->sID, pReg );
126 } 126 }
127 127
128 void registerExternalPlugin( const Bu::FString &sFName, 128 void registerExternalPlugin( const Bu::String &sFName,
129 const Bu::FString &sPluginName ) 129 const Bu::String &sPluginName )
130 { 130 {
131 PluginReg *pReg; 131 PluginReg *pReg;
132 try { 132 try {
@@ -158,7 +158,7 @@ namespace Bu
158 hPlugin.insert( pReg->pInfo->sID, pReg ); 158 hPlugin.insert( pReg->pInfo->sID, pReg );
159 } 159 }
160 160
161 T *instantiate( const Bu::FString &lpName ) 161 T *instantiate( const Bu::String &lpName )
162 { 162 {
163 PluginReg *pReg = (PluginReg *)hPlugin[lpName]; 163 PluginReg *pReg = (PluginReg *)hPlugin[lpName];
164 if( pReg == NULL ) 164 if( pReg == NULL )
@@ -171,7 +171,7 @@ namespace Bu
171 return p; 171 return p;
172 } 172 }
173 173
174 bool hasPlugin( const Bu::FString &lpName ) 174 bool hasPlugin( const Bu::String &lpName )
175 { 175 {
176 return hPlugin.has( lpName ); 176 return hPlugin.has( lpName );
177 } 177 }
@@ -202,7 +202,7 @@ namespace Bu
202 hPlugin.clear(); 202 hPlugin.clear();
203 } 203 }
204 204
205 Bu::List<Bu::FString> getPluginList() 205 Bu::List<Bu::String> getPluginList()
206 { 206 {
207 return hPlugin.getKeys(); 207 return hPlugin.getKeys();
208 } 208 }