summaryrefslogtreecommitdiffstats
path: root/src/rccexternal.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2007-04-14 22:20:10 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2007-04-14 22:20:10 +0000
commit8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e (patch)
tree724ddc9ab6cb3a362051fe1e081b3ccdcd7c0d5c /src/rccexternal.h
parentb91203daf1a2b5865bfd284821c0c0b103f5b8e7 (diff)
downloadlibrcc-8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e.tar.gz
librcc-8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e.tar.bz2
librcc-8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e.tar.xz
librcc-8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e.zip
DB4 & Postponed processing
- New DB4 database type - Postponed processing in external module + User may allow external module to finish required processing before termination. This could be useful for translation services while using console applications (if network connection is slow, the external will never finish translation before program termination) - SKIP_PARRENT options are renamed to SKIP_PARENT
Diffstat (limited to 'src/rccexternal.h')
-rw-r--r--src/rccexternal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rccexternal.h b/src/rccexternal.h
index 236e2df..1038329 100644
--- a/src/rccexternal.h
+++ b/src/rccexternal.h
@@ -3,6 +3,7 @@
typedef enum rcc_external_module_t {
RCC_EXTERNAL_MODULE_CONTROL = 0,
+ RCC_EXTERNAL_MODULE_OPTIONS,
RCC_EXTERNAL_MODULE_LIBRTRANSLATE,
RCC_EXTERNAL_MODULE_MAX
} rcc_external_module;
@@ -13,6 +14,11 @@ struct rcc_external_info_t {
typedef struct rcc_external_info_t rcc_external_info_s;
typedef struct rcc_external_info_t *rcc_external_info;
+typedef enum rcc_external_option_t {
+ RCC_EXTERNAL_OPTION_OFFLINE = 0,
+ RCC_EXTERNAL_OPTION_MAX
+} rcc_external_option;
+
struct rcc_external_command_t {
unsigned long size;
unsigned char cmd;
@@ -25,6 +31,8 @@ typedef struct rcc_external_command_t *rcc_external_command;
int rccExternalInit();
void rccExternalFree();
+int rccExternalAllowOfflineMode();
+
size_t rccExternalWrite(int s, const char *buffer, ssize_t size, unsigned long timeout);
size_t rccExternalRead(int s, char *buffer, ssize_t size, unsigned long timeout);
int rccExternalConnect(unsigned char module);