aboutsummaryrefslogtreecommitdiffstats
path: root/src/data-user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data-user.c')
-rw-r--r--src/data-user.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/data-user.c b/src/data-user.c
index ca9e9b12..de81c7b9 100644
--- a/src/data-user.c
+++ b/src/data-user.c
@@ -25,6 +25,7 @@
#include <sys/types.h>
#include <errno.h>
+#include "debug.h"
#include "data.h"
@@ -86,13 +87,16 @@ static struct _gpgme_data_cbs user_cbs =
gpgme_error_t
-gpgme_data_new_from_cbs (gpgme_data_t *dh, gpgme_data_cbs_t cbs, void *handle)
+gpgme_data_new_from_cbs (gpgme_data_t *r_dh, gpgme_data_cbs_t cbs, void *handle)
{
- gpgme_error_t err = _gpgme_data_new (dh, &user_cbs);
+ gpgme_error_t err;
+ TRACE_BEG1 (DEBUG_DATA, "gpgme_data_new_from_cbs", r_dh, "handle=%p", handle);
+
+ err = _gpgme_data_new (r_dh, &user_cbs);
if (err)
- return err;
+ return TRACE_ERR (err);
- (*dh)->data.user.cbs = cbs;
- (*dh)->data.user.handle = handle;
- return 0;
+ (*r_dh)->data.user.cbs = cbs;
+ (*r_dh)->data.user.handle = handle;
+ return TRACE_SUC1 ("dh=%p", *r_dh);
}