diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 02:14:08 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 02:14:08 +0000 |
| commit | f5aca1a1b402bd7ebc944dc6e6fe65828d863365 (patch) | |
| tree | 4a0fdd8e166d5c4b03543279d332b9a858ef62df /src/plugger.h | |
| parent | 10c557562e1d67c55314c212371ea9cb7f802863 (diff) | |
| download | libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.gz libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.bz2 libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.tar.xz libbu++-f5aca1a1b402bd7ebc944dc6e6fe65828d863365.zip | |
Bu::FString is now String, and there's a shell script to fix any other programs
that were using fstring, I hope.
Diffstat (limited to '')
| -rw-r--r-- | src/plugger.h | 14 |
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 | ||
| 20 | namespace Bu | 20 | namespace 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 | } |
