rime_api.h   rime_api.h 
skipping to change at line 113 skipping to change at line 113
Bool is_ascii_mode; Bool is_ascii_mode;
Bool is_full_shape; Bool is_full_shape;
Bool is_simplified; Bool is_simplified;
// ... // ...
} RimeStatus; } RimeStatus;
typedef struct { typedef struct {
void* ptr; void* ptr;
} RimeConfig; } RimeConfig;
typedef struct {
void* list;
void* map;
int index;
const char* key;
const char* path;
} RimeConfigIterator;
typedef struct {
char* schema_id;
char* name;
void* unused;
} RimeSchemaListItem;
typedef struct {
size_t size;
RimeSchemaListItem* list;
} RimeSchemaList;
// entry and exit // entry and exit
// call this function before accessing any other API.
// pass a C-string constant in the format "rime.x"
// where 'x' is the name of your application.
// the prefix "rime." ensures old log files are automatically cleaned.
RIME_API void RimeSetupLogging(const char* app_name);
RIME_API void RimeInitialize(RimeTraits *traits); RIME_API void RimeInitialize(RimeTraits *traits);
RIME_API void RimeFinalize(); RIME_API void RimeFinalize();
RIME_API Bool RimeStartMaintenance(Bool full_check); RIME_API Bool RimeStartMaintenance(Bool full_check);
RIME_API Bool RimeStartMaintenanceOnWorkspaceChange(); RIME_API Bool RimeStartMaintenanceOnWorkspaceChange();
RIME_API Bool RimeIsMaintenancing(); RIME_API Bool RimeIsMaintenancing();
RIME_API void RimeJoinMaintenanceThread(); RIME_API void RimeJoinMaintenanceThread();
// deployment // deployment
skipping to change at line 155 skipping to change at line 180
// output // output
RIME_API Bool RimeGetCommit(RimeSessionId session_id, RimeCommit* commit); RIME_API Bool RimeGetCommit(RimeSessionId session_id, RimeCommit* commit);
RIME_API Bool RimeFreeCommit(RimeCommit* commit); RIME_API Bool RimeFreeCommit(RimeCommit* commit);
RIME_API Bool RimeGetContext(RimeSessionId session_id, RimeContext* context ); RIME_API Bool RimeGetContext(RimeSessionId session_id, RimeContext* context );
RIME_API Bool RimeFreeContext(RimeContext* context); RIME_API Bool RimeFreeContext(RimeContext* context);
RIME_API Bool RimeGetStatus(RimeSessionId session_id, RimeStatus* status); RIME_API Bool RimeGetStatus(RimeSessionId session_id, RimeStatus* status);
RIME_API Bool RimeFreeStatus(RimeStatus* status); RIME_API Bool RimeFreeStatus(RimeStatus* status);
// runtime options
RIME_API void RimeSetOption(RimeSessionId session_id, const char* option, B
ool value);
RIME_API Bool RimeGetOption(RimeSessionId session_id, const char* option);
RIME_API Bool RimeGetSchemaList(RimeSchemaList* schema_list);
RIME_API void RimeFreeSchemaList(RimeSchemaList* schema_list);
RIME_API Bool RimeGetCurrentSchema(RimeSessionId session_id, char* schema_i
d, size_t buffer_size);
RIME_API Bool RimeSelectSchema(RimeSessionId session_id, const char* schema
_id);
// configuration // configuration
RIME_API Bool RimeConfigOpen(const char *config_id, RimeConfig* config); RIME_API Bool RimeConfigOpen(const char *config_id, RimeConfig* config);
RIME_API Bool RimeConfigClose(RimeConfig *config); RIME_API Bool RimeConfigClose(RimeConfig *config);
RIME_API Bool RimeConfigGetBool(RimeConfig *config, const char *key, Bool * value); RIME_API Bool RimeConfigGetBool(RimeConfig *config, const char *key, Bool * value);
RIME_API Bool RimeConfigGetInt(RimeConfig *config, const char *key, int *va lue); RIME_API Bool RimeConfigGetInt(RimeConfig *config, const char *key, int *va lue);
RIME_API Bool RimeConfigGetDouble(RimeConfig *config, const char *key, doub le *value); RIME_API Bool RimeConfigGetDouble(RimeConfig *config, const char *key, doub le *value);
RIME_API Bool RimeConfigGetString(RimeConfig *config, const char *key, RIME_API Bool RimeConfigGetString(RimeConfig *config, const char *key,
char *value, size_t buffer_size); char *value, size_t buffer_size);
RIME_API Bool RimeConfigUpdateSignature(RimeConfig *config, const char* sig RIME_API Bool RimeConfigUpdateSignature(RimeConfig* config, const char* sig
ner); ner);
RIME_API Bool RimeConfigBeginMap(RimeConfigIterator* iterator, RimeConfig*
config, const char* key);
RIME_API Bool RimeConfigNext(RimeConfigIterator* iterator);
RIME_API void RimeConfigEnd(RimeConfigIterator* iterator);
// testing // testing
RIME_API Bool RimeSimulateKeySequence(RimeSessionId session_id, const char *key_sequence); RIME_API Bool RimeSimulateKeySequence(RimeSessionId session_id, const char *key_sequence);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif // RIME_API_H_ #endif // RIME_API_H_
 End of changes. 4 change blocks. 
2 lines changed or deleted 44 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/