some documentation (WIP)
This commit is contained in:
parent
b528040d11
commit
a0d0c6be30
11
README.md
11
README.md
@ -5,3 +5,14 @@ libipc - Simple, easy-to-use IPC library
|
||||
|
||||
See the introductory [man page](man/libipc.7.md).
|
||||
|
||||
# Compilation
|
||||
|
||||
`make`
|
||||
|
||||
|
||||
# logging system
|
||||
|
||||
Logs are in one of the following directories: `$XDG_DATA_HOME/ipc/` or `$HOME/.local/share/ipc/`.
|
||||
The log file can be indicated with the `IPC_LOGFILE` environment variable, too.
|
||||
|
||||
To remove logs: `make LDFLAGS=-DIPC_WITHOUT_ERRORS`
|
||||
|
@ -47,17 +47,11 @@ It provides both client and server code.
|
||||
|
||||
## Message functions
|
||||
|
||||
// create msg structure with a certain payload length (0 for no payload memory allocation)\
|
||||
*enum ipc_errors* **ipc_message_new** (*struct ipc_message* \*\*m, *ssize_t* paylen);\
|
||||
// create msg structure from buffer\
|
||||
*enum ipc_errors* **ipc_message_format_read** (*struct ipc_message* \*m, *const char* \*buf, *ssize_t* msize);\
|
||||
// create buffer from msg structure\
|
||||
*enum ipc_errors* **ipc_message_format_write** (*const struct ipc_message* \*m, *char* \*\*buf, *ssize_t* \*msize);\
|
||||
|
||||
// read a structure msg from fd\
|
||||
*enum ipc_errors* **ipc_message_read** (*int32_t* fd, *struct ipc_message* \*m);\
|
||||
// write a structure msg to fd\
|
||||
*enum ipc_errors* **ipc_message_write** (*int32_t* fd, *const struct ipc_message* \*m);\
|
||||
*enum ipc_errors* **ipc_message_format** (*struct ipc_message* \*m, *char* type, *const char* \*payload, *ssize_t* length);\
|
||||
*enum ipc_errors* **ipc_message_format_data** (*struct ipc_message* \*m, *const char* \*payload, *ssize_t* length);\
|
||||
*enum ipc_errors* **ipc_message_format_server_close** (*struct ipc_message* \*m);\
|
||||
|
Reference in New Issue
Block a user