aboutsummaryrefslogtreecommitdiffstats
path: root/src/export.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-06-14 08:12:56 +0000
committerWerner Koch <[email protected]>2019-06-14 08:16:06 +0000
commit153f1128f81a934868a4175e73342b1adb9a969e (patch)
tree2e5ddb203f0f411fff7743176e0e30a63f881fc0 /src/export.c
parentcore: Refactor the wait code utilizing the new fdtable. (diff)
downloadgpgme-153f1128f81a934868a4175e73342b1adb9a969e.tar.gz
gpgme-153f1128f81a934868a4175e73342b1adb9a969e.zip
core: Use a better name for the internal synchronous wait.
* src/wait.c (_gpgme_wait_on_condition): Rename to ... (_gpgme_sync_wait): this. Small code refactoring. (_gpgme_wait_one, _gpgme_wait_one_ext): Remove and change all callers to use _gpgme_sync_wait. * src/fdtable.c (_gpgme_fdtable_run_io_cbs): Move TRACE up. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/export.c')
-rw-r--r--src/export.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/export.c b/src/export.c
index abf260ad..81ec2936 100644
--- a/src/export.c
+++ b/src/export.c
@@ -202,7 +202,7 @@ gpgme_op_export (gpgme_ctx_t ctx, const char *pattern,
err = export_start (ctx, 1, pattern, mode, keydata);
if (!err)
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
return err;
}
@@ -319,7 +319,7 @@ gpgme_op_export_ext (gpgme_ctx_t ctx, const char *pattern[],
err = export_ext_start (ctx, 1, pattern, mode, keydata);
if (!err)
{
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
if (!err)
{
/* For this synchronous operation we check for operational
@@ -459,7 +459,7 @@ gpgme_op_export_keys (gpgme_ctx_t ctx,
err = export_keys_start (ctx, 1, keys, mode, keydata);
if (!err)
{
- err = _gpgme_wait_one (ctx);
+ err = _gpgme_sync_wait (ctx, NULL, NULL);
if (!err)
{
/* For this synchronous operation we check for operational
@@ -478,4 +478,3 @@ gpgme_op_export_keys (gpgme_ctx_t ctx,
return TRACE_ERR (err);
}
-