2008-05-25 07:05:11 +00:00
|
|
|
#ifndef _ASE_TGP_H_
|
|
|
|
#define _ASE_TGP_H_
|
|
|
|
|
|
|
|
#include <ase/cmn/types.h>
|
|
|
|
#include <ase/cmn/macros.h>
|
|
|
|
|
|
|
|
typedef struct ase_tgp_t ase_tgp_t;
|
|
|
|
|
2008-06-27 04:46:39 +00:00
|
|
|
enum ase_tgp_iocmd_t
|
|
|
|
{
|
|
|
|
ASE_TGP_IO_OPEN = 0,
|
|
|
|
ASE_TGP_IO_CLOSE = 1,
|
|
|
|
ASE_TGP_IO_READ = 2,
|
|
|
|
ASE_TGP_IO_WRITE = 3
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef ase_ssize_t (*ase_tgp_io_t) (
|
|
|
|
int cmd, void* arg, ase_char_t* data, ase_size_t count);
|
|
|
|
|
2008-05-25 07:05:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
ase_tgp_t* ase_tgp_open (ase_mmgr_t* mmgr);
|
|
|
|
void ase_tgp_close (ase_tgp_t* tgp);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|