aboutsummaryrefslogtreecommitdiffstats
path: root/debuginfod/debuginfod.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2020-03-19 20:27:11 -0400
committerFrank Ch. Eigler <fche@redhat.com>2020-03-22 16:46:14 -0400
commitb40e25568333a80b3f1f3cb7dd2e2a2caf880dcb (patch)
tree4224c9db7f4a0aa7932e2b7b5727a44e8ca30104 /debuginfod/debuginfod.h
parent2092865a7e589ff805caa47e69ac9630f34d4f2a (diff)
downloadplatform_external_elfutils-b40e25568333a80b3f1f3cb7dd2e2a2caf880dcb.tar.gz
platform_external_elfutils-b40e25568333a80b3f1f3cb7dd2e2a2caf880dcb.tar.bz2
platform_external_elfutils-b40e25568333a80b3f1f3cb7dd2e2a2caf880dcb.zip
debuginfod client API: add get/set user_data functions
Add a pair of functions to associate a void* parameter with a client object. Requested by GDB team as a way to pass file names and such user-interface data through to a progressfn callback. Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
Diffstat (limited to 'debuginfod/debuginfod.h')
-rw-r--r--debuginfod/debuginfod.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/debuginfod/debuginfod.h b/debuginfod/debuginfod.h
index b4b6a3d2..fe72f16e 100644
--- a/debuginfod/debuginfod.h
+++ b/debuginfod/debuginfod.h
@@ -1,5 +1,5 @@
/* External declarations for the libdebuginfod client library.
- Copyright (C) 2019 Red Hat, Inc.
+ Copyright (C) 2019-2020 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
@@ -54,7 +54,7 @@ debuginfod_client *debuginfod_begin (void);
return a posix error code. If successful, set *path to a
strdup'd copy of the name of the same file in the cache.
Caller must free() it later. */
-
+
int debuginfod_find_debuginfo (debuginfod_client *client,
const unsigned char *build_id,
int build_id_len,
@@ -75,6 +75,12 @@ typedef int (*debuginfod_progressfn_t)(debuginfod_client *c, long a, long b);
void debuginfod_set_progressfn(debuginfod_client *c,
debuginfod_progressfn_t fn);
+/* Set the user parameter. */
+void debuginfod_set_user_data (debuginfod_client *client, void *value);
+
+/* Get the user parameter. */
+void* debuginfod_get_user_data (debuginfod_client *client);
+
/* Release debuginfod client connection context handle. */
void debuginfod_end (debuginfod_client *client);