sj4/include/sj4ime/sj4ime.h

31 lines
574 B
C
Raw Normal View History

2026-06-25 20:18:21 +09:00
#ifndef __SJ4IME_H__
#define __SJ4IME_H__
2026-06-29 20:11:20 +09:00
#include <sj4charset.h>
2026-06-25 20:18:21 +09:00
#ifdef __cplusplus
extern "C" {
#endif
typedef struct sj4ime Sj4Ime;
2026-07-05 04:25:55 +09:00
typedef void (*Sj4ImePacket)(Sj4Ime* ime, int type, void* data);
enum SJ4IMEPACKET {
Sj4ImeBeginKanList = 0,
Sj4ImeKanEntry,
Sj4ImeEndKanList
};
Sj4Ime* sj4_ime(int charset, const char* dict, Sj4ImePacket packet);
2026-06-29 20:11:20 +09:00
void sj4_ime_key(Sj4Ime* ime, int key);
2026-07-05 04:25:55 +09:00
int sj4_ime_length(Sj4Ime* ime);
void* sj4_ime_kouho(Sj4Ime* ime);
void* sj4_ime_kanabuf(Sj4Ime* ime);
2026-07-02 09:41:03 +09:00
void* sj4_ime_convbuf(Sj4Ime* ime);
2026-06-25 20:18:21 +09:00
#ifdef __cplusplus
}
#endif
#endif