Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
24
Src/Wasabi/api/service/svc_enum.h
Normal file
24
Src/Wasabi/api/service/svc_enum.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef _SVC_ENUM_H
|
||||
#define _SVC_ENUM_H
|
||||
|
||||
// try to use this one, it does a clientLock for you
|
||||
#include <api/service/waservicefactory.h>
|
||||
template <class T>
|
||||
class castService {
|
||||
public:
|
||||
castService(waServiceFactory *w, int global_lock=TRUE) : was(w), gl(global_lock) { }
|
||||
operator T *() {
|
||||
if (was == NULL) return NULL;
|
||||
T *ret = static_cast<T *>(was->getInterface(gl));
|
||||
return ret;
|
||||
}
|
||||
private:
|
||||
waServiceFactory *was;
|
||||
int gl;
|
||||
};
|
||||
|
||||
#include "svcenumbyguid.h"
|
||||
#include "svcenum.h"
|
||||
#include "svcenumt.h"
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue