howm
howm
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
ipc.h
Go to the documentation of this file.
1
#ifndef IPC_H
2
#define IPC_H
3
14
enum
ipc_errs
{
IPC_ERR_NONE
,
IPC_ERR_SYNTAX
,
IPC_ERR_ALLOC
,
IPC_ERR_NO_FUNC
,
15
IPC_ERR_TOO_MANY_ARGS
,
IPC_ERR_TOO_FEW_ARGS
,
IPC_ERR_ARG_NOT_INT
,
16
IPC_ERR_ARG_NOT_BOOL
,
IPC_ERR_ARG_TOO_LARGE
,
IPC_ERR_ARG_TOO_SMALL
,
17
IPC_ERR_UNKNOWN_TYPE
,
IPC_ERR_NO_CONFIG
};
18
enum
arg_types
{
TYPE_IGNORE
,
TYPE_INT
,
TYPE_STR
};
19
20
void
ipc_cleanup
(
void
);
21
int
ipc_init
(
void
);
22
int
ipc_process
(
char
*msg,
int
len);
23
24
#endif
IPC_ERR_UNKNOWN_TYPE
Definition:
ipc.h:17
IPC_ERR_ARG_NOT_INT
Definition:
ipc.h:15
IPC_ERR_SYNTAX
Definition:
ipc.h:14
TYPE_IGNORE
Definition:
ipc.h:18
ipc_process
int ipc_process(char *msg, int len)
Process a message depending on its type - a config message or a function call message.
Definition:
ipc.c:107
ipc_cleanup
void ipc_cleanup(void)
Delete the UNIX socket file.
Definition:
ipc.c:88
TYPE_INT
Definition:
ipc.h:18
IPC_ERR_TOO_FEW_ARGS
Definition:
ipc.h:15
TYPE_STR
Definition:
ipc.h:18
ipc_init
int ipc_init(void)
Open a socket and return it.
Definition:
ipc.c:47
IPC_ERR_TOO_MANY_ARGS
Definition:
ipc.h:15
arg_types
arg_types
Definition:
ipc.h:18
IPC_ERR_ARG_TOO_LARGE
Definition:
ipc.h:16
IPC_ERR_ALLOC
Definition:
ipc.h:14
IPC_ERR_NONE
Definition:
ipc.h:14
IPC_ERR_ARG_NOT_BOOL
Definition:
ipc.h:16
ipc_errs
ipc_errs
Definition:
ipc.h:14
IPC_ERR_ARG_TOO_SMALL
Definition:
ipc.h:16
IPC_ERR_NO_FUNC
Definition:
ipc.h:14
IPC_ERR_NO_CONFIG
Definition:
ipc.h:17
src
ipc.h
Generated on Thu Mar 31 2016 20:44:00 for howm by
1.8.11