-
Notifications
You must be signed in to change notification settings - Fork 7
/
IService.h
executable file
·53 lines (48 loc) · 1.9 KB
/
IService.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef ISERVICE_H
#define ISERVICE_H
/*************************************************************
* Run service.
* Parm:
* control - control flags string with null-termination
* in - input
* in_size - size of input
* out - output buffer
* out_size_p - (input) size of output buffer;
* (output) size of bytes returned in buffer.
* Return:
* >=0 : Size of available bytes
************************************************************/
extern "C" int runService(const char* control,
const char* in,
int in_size,
char* out,
int* out_size_p);
/*************************************************************
* Run service.
* Parm:
* control - control flags string with null-termination
* ccsid - ccsid of input and output for parm control
* in - input
* in_size - size of input
* out - output buffer
* out_size_p - (input) size of output buffer;
* (output) size of bytes returned in buffer.
* Return:
* Size of available bytes
************************************************************/
extern "C" int runService2(const char* control,
int ccsid,
const char* in,
int in_size,
char* out,
int* out_size_p);
/*************************************************************
* Start IPC server.
* Parm:
* ipc_key - ipc key
* ccsid - ccsid of ipc key
* Return:
* 0 - successful
************************************************************/
extern "C" int runServer(const char* ipc_key, int ccsid);
#endif