2 * Copyright (c) 2001-2002 artofcode LLC.
4 * Permission is hereby granted, free of charge, to any person
5 * obtaining a copy of this software and associated documentation
6 * files (the "Software"), to deal in the Software without
7 * restriction, including without limitation the rights to use, copy,
8 * modify, merge, publish, distribute, sublicense, and/or sell copies
9 * of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29 typedef struct _IjsClientCtx IjsClientCtx;
32 ijs_invoke_server (const char *server_cmd);
35 ijs_exec_server (const char *server_cmd, int *pfd_to, int *pfd_from,
39 ijs_client_begin_cmd (IjsClientCtx *ctx, IjsCommand cmd);
42 ijs_client_send_int (IjsClientCtx *ctx, int val);
45 ijs_client_send_cmd (IjsClientCtx *ctx);
48 ijs_client_send_cmd_wait (IjsClientCtx *ctx);
51 ijs_client_send_data_wait (IjsClientCtx *ctx, IjsJobId job_id,
52 const char *buf, int size);
55 ijs_client_open (IjsClientCtx *ctx);
58 ijs_client_close (IjsClientCtx *ctx);
61 ijs_client_begin_job (IjsClientCtx *ctx, IjsJobId job_id);
64 ijs_client_end_job (IjsClientCtx *ctx, IjsJobId job_id);
67 ijs_client_list_params (IjsClientCtx *ctx, IjsJobId job_id,
68 char *value, int value_size);
71 ijs_client_enum_param (IjsClientCtx *ctx, IjsJobId job_id,
72 const char *key, char *value,
76 ijs_client_set_param (IjsClientCtx *ctx, IjsJobId job_id,
77 const char *key, const char *value,
81 ijs_client_get_param (IjsClientCtx *ctx, IjsJobId job_id,
82 const char *key, char *value,
86 ijs_client_begin_page (IjsClientCtx *ctx, IjsJobId job_id);
89 ijs_client_end_page (IjsClientCtx *ctx, IjsJobId job_id);
92 ijs_client_get_version (IjsClientCtx *ctx);