Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
37
Src/Wasabi/api/service/svcenum.h
Normal file
37
Src/Wasabi/api/service/svcenum.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
#ifndef _SVCENUM_H
|
||||
#define _SVCENUM_H
|
||||
|
||||
|
||||
/*<?<autoheader/>*/
|
||||
class waServiceFactory;
|
||||
/*?>*/
|
||||
|
||||
// abstract base class
|
||||
class NOVTABLE SvcEnum {
|
||||
protected:
|
||||
SvcEnum();
|
||||
|
||||
void *_getNext(int global_lock = TRUE);
|
||||
void reset();
|
||||
|
||||
virtual int _testService(void *)=0;
|
||||
|
||||
public:
|
||||
#ifdef ASSERTS_ENABLED
|
||||
static int release(waServiceFactory *ptr) { ASSERTALWAYS("never ever call release() with a waServiceFactory * !!!"); return 0; }
|
||||
#endif
|
||||
static int release(void *ptr);
|
||||
|
||||
waServiceFactory *getLastFactory();
|
||||
|
||||
protected:
|
||||
FOURCC type;
|
||||
|
||||
private:
|
||||
int pos;
|
||||
waServiceFactory * factory;
|
||||
};
|
||||
|
||||
|
||||
#endif // _SVCENUM_H
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue