diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-05-29 15:54:30 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-05-29 15:54:30 +0200 |
commit | db01090e1f869965c07b12d9480fa6f3d2e7b1b0 (patch) | |
tree | 523e4b00bf591c56f671b5b610f6284b8ce64fbd /src/afb-api-so-v1.c | |
parent | 6f1126ae2c585afc34d0bb06f3763e3a82ee3d37 (diff) |
Add vfail and vsuccess interfaces
This now factorizes code needed to asprintf
the arguments in an allocated string.
But the most interesting effect is the ability
to handle va_list of arguments. It can be used
for library of tools.
Change-Id: I4ba74c9984786f07abe0c7e53d7ef79dca863735
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so-v1.c')
-rw-r--r-- | src/afb-api-so-v1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-api-so-v1.c b/src/afb-api-so-v1.c index c1f27093..f4562ec5 100644 --- a/src/afb-api-so-v1.c +++ b/src/afb-api-so-v1.c @@ -18,6 +18,7 @@ #define _GNU_SOURCE #define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO +#include <stdio.h> #include <string.h> #include <dlfcn.h> #include <assert.h> |