2005-09-18 08:10:50 +00:00
|
|
|
/*
|
2006-10-26 08:17:38 +00:00
|
|
|
* $Id: name.h,v 1.7 2006-10-26 08:17:37 bacon Exp $
|
2005-09-18 08:10:50 +00:00
|
|
|
*/
|
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
#ifndef _ASE_LSP_NAME_H_
|
|
|
|
#define _ASE_LSP_NAME_H_
|
2005-09-18 08:10:50 +00:00
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
#include <ase/types.h>
|
|
|
|
#include <ase/macros.h>
|
2005-09-18 08:10:50 +00:00
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
struct ase_lsp_name_t
|
2005-09-18 08:10:50 +00:00
|
|
|
{
|
2006-10-26 08:17:38 +00:00
|
|
|
ase_size_t capa;
|
|
|
|
ase_size_t size;
|
|
|
|
ase_char_t* buf;
|
|
|
|
ase_char_t static_buf[128];
|
|
|
|
ase_lsp_t* lsp;
|
2006-10-24 04:22:40 +00:00
|
|
|
ase_bool_t __dynamic;
|
2005-09-18 08:10:50 +00:00
|
|
|
};
|
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
typedef struct ase_lsp_name_t ase_lsp_name_t;
|
2005-09-18 08:10:50 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
ase_lsp_name_t* ase_lsp_name_open (
|
2006-10-26 08:17:38 +00:00
|
|
|
ase_lsp_name_t* name, ase_size_t capa, ase_lsp_t* lsp);
|
2006-10-24 04:22:40 +00:00
|
|
|
void ase_lsp_name_close (ase_lsp_name_t* name);
|
2005-09-18 08:10:50 +00:00
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
int ase_lsp_name_addc (ase_lsp_name_t* name, ase_cint_t c);
|
|
|
|
int ase_lsp_name_adds (ase_lsp_name_t* name, const ase_char_t* s);
|
|
|
|
void ase_lsp_name_clear (ase_lsp_name_t* name);
|
2006-10-26 08:17:38 +00:00
|
|
|
ase_char_t* ase_lsp_name_yield (ase_lsp_name_t* name, ase_size_t capa);
|
2006-10-24 04:22:40 +00:00
|
|
|
int ase_lsp_name_compare (ase_lsp_name_t* name, const ase_char_t* str);
|
2005-09-18 08:10:50 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|