Debian Codegraph @

doc/README.apichanges

raw
1 README.apichanges -*- text -*-
2
3 API changes between 1.0.5 and 2.0.0:
4 ====================================
5
6 While allowing to build libassuan as a DSO we decided to clean up the
7 API. The changes are straightforward and it should only take a few
8 minutes to fix your code.
9
10 See the NEWS file for functions that have been renamed or replaced by
11 alternatives that are used in the same way (but may have extra
12 arguments with suitable default values or similar). The rest of this
13 document lists significant changes only.
14
15 There have been many macros provided now for fixed constants, you may
16 consider using them (but the old hard-coded values will continue to
17 work where applicable). Particularly noteworthy is ASSUAN_INVALID_PID
18 and all flags values.
19
20 Use of libgpg-error is mandatory.
21
22 assuan_pipe_connect child fds are now of assuan_fd_t type, not of int
23 type. Use assuan_fd_from_posix_fd() for conversion. If you use
24 assuan_pipe_connect with NAME of NULL, you have to provide a non-NULL
25 ARGV argument and check that against "server" or "client" to determine
26 which end you got after fork().
27
28 assuan_init_pipe_server closes the provided fds after terminating the
29 connection now. Use assuan_fdopen to duplicate them first.
30
31 If you use the assuan sock interface, you must call assuan_sock_init after
32 setting global context defaults.
33
34 Pth support has changed. This now follows the same style as libgcrypt
35 by setting system hook callbacks.