123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /* $Id$
- *
- * factory.h
- *
- * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
- * See the COPYING file for the terms of usage and distribution.
- */
- #ifndef __sd_factory_h
- #define __sd_factory_h
- /**
- * @file factory.h
- */
- #include <tchar.h>
- #include <stdio.h>
- #include "sd/defs.h"
- __SD_BEGIN_DECLS
- struct __sd_factory;
- typedef struct __sd_factory sd_factory_t;
- struct __sd_factory_ops
- {
- void* (*fac_new) (const TCHAR*);
- void (*fac_delete) (void*);
- void (*fac_print) (void*, FILE*);
- };
- typedef struct __sd_factory_ops sd_factory_ops_t;
- extern sd_factory_t* sd_factory_new(const TCHAR* a_name, const sd_factory_ops_t* a_ops);
- extern void sd_factory_delete(sd_factory_t* a_this);
- extern void* sd_factory_get(sd_factory_t* a_this, const TCHAR* a_name);
- extern void sd_factory_destroy(sd_factory_t* a_this, void* a_pr);
- extern void sd_factory_print(const sd_factory_t* a_this, FILE* a_stream);
- extern int sd_factory_list(const sd_factory_t* a_this, void** a_items,int a_nitems);
- __SD_END_DECLS
- #endif
|