From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 3CA403858D28 for ; Wed, 6 Jul 2022 19:54:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3CA403858D28 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-31-mgI7dEcuMsS2qJef9e6Jyw-1; Wed, 06 Jul 2022 15:54:46 -0400 X-MC-Unique: mgI7dEcuMsS2qJef9e6Jyw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 03FBA185A7B2; Wed, 6 Jul 2022 19:54:46 +0000 (UTC) Received: from redhat.com (unknown [10.2.16.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E85DCC28118; Wed, 6 Jul 2022 19:54:45 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.94.2) (envelope-from ) id 1o9B6j-0003L6-43; Wed, 06 Jul 2022 15:54:45 -0400 Date: Wed, 6 Jul 2022 15:54:45 -0400 From: "Frank Ch. Eigler" To: Milian Wolff Cc: elfutils-devel@sourceware.org Subject: Re: Expanding control over debuginfod usage from dwfl [was: Re: Questions regarding debuginfod.h API] Message-ID: <20220706195445.GF9702@redhat.com> References: <5817622.lOV4Wx5bFT@agathemoarbauer> <5731070.DvuYhMxLoT@agathemoarbauer> <20220706194133.GE9702@redhat.com> <4558765.LvFx2qVVIh@agathemoarbauer> MIME-Version: 1.0 In-Reply-To: <4558765.LvFx2qVVIh@agathemoarbauer> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2022 19:54:49 -0000 Hi - > I'm working on GUI applications (hotspot [1], gammaray [2]), people do not > look at the command line output. I want to show the download progress and > status graphically instead. [...] Aha, got it. I'd say a extern debuginfod_client *dwfl_get_debuginfod_client (Dwfl *); type function would probably be your bet. That could also be built upon later, to provide finer grained control (to override environment variable settings e.g.). The other approach of a custom Dwfl_Callbacks .find_debuginfo hook is also available, wherein your own app can take charge of finding / downloading debuginfo, with its own bespoke debuginfod_client object. This would have the benefit of working with existing elfutils. - FChE