From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ztPWIrGQul8KTAAA0tVLHw (envelope-from ) for ; Sun, 22 Nov 2020 16:24:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IDggHrGQul8cIAAAB5/wlQ (envelope-from ) for ; Sun, 22 Nov 2020 16:24:17 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C8C7194021E for ; Sun, 22 Nov 2020 16:24:14 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id AF4F4270EA; Sun, 22 Nov 2020 11:24:05 -0500 (EST) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by mail.notmuchmail.org (Postfix) with ESMTPS id 28E061FFD7 for ; Sun, 22 Nov 2020 11:24:03 -0500 (EST) Received: by mail-ed1-x536.google.com with SMTP id cq7so14613782edb.4 for ; Sun, 22 Nov 2020 08:24:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=sR4j6uJjb3JtGM+raGQoDa+pNtoAkWONBKu1EQ/NqkU=; b=CR1USeLUHt7kNCykpt+D+Cfxov7omy0MDqMEYbRXX77+TPoe6bW2hgOu8rpq9+hefZ fvG49hWaaOcNm2qPPktqloQL1QW1kPR03/Bi3CANeXmc3LeZHHkyG5dSUcgk52+L6aXQ Iuw0u9MvswspJRRERdsLr6hULo8uU8LmdK1HVcDm0QS3+JZRNasl9p1bEBvLnqIwiPvM bcgrucJ5rqFDK85Er9vZBtHPNi569W2X5V89gZUXexYOFUAcG6W/9nu041/3Smk61wAJ Tkq3eaqeokeMZs81NsXD9/IPHKBUjfwoh7462Q2N3NnNOG9LPhx9vc+lp2pOHqkz0x5G JVMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=sR4j6uJjb3JtGM+raGQoDa+pNtoAkWONBKu1EQ/NqkU=; b=GKE8jvjAlKPtQp0FwUa4b/G3uMVAu3LixiLke1DvdYFWKLAw1dqwASjqStLFwwJr0/ 5ndU7KuNbUXbrDEYxKUhoxejNEzhe19gcN+NkHSHvnTnrV3yMfHs2PVQwQZzU7PUPSju 2U3tYf6fUavsiOVK/mCgOgBvCDszsLMYP3qFJ4TWpIoup3M+jwrgC26pVwjt5dTCPNzO R9gveANMMs0Ye3/EJ2ez+LIag1GnYtTGIAGQ9Lfy5oXkY4bQb3AH1Up0rs5qyCOCY4Ww HqXfsGnLUvs2Kr6pIeRNJ4gTZiuDN6a+duSkaI9QXv6IH/EuItSW8aAJJF0hq5gQkS5G oARA== X-Gm-Message-State: AOAM531uEwbsHHZZiJnR8viLFvw+Bs+cZRSGUXAKgfkKoCqwq23nGDvn nTUjRZq68CW+he0KgiwvC1yJXYZ3K4k= X-Google-Smtp-Source: ABdhPJzN1ERF/I2sWwuEIpFa2NXtcuf5M0pHU3FFy3bTK1OqsT6mPmGjacEZ8Uwua923Zwq0glD5mw== X-Received: by 2002:a05:6402:48d:: with SMTP id k13mr44427104edv.92.1606062241192; Sun, 22 Nov 2020 08:24:01 -0800 (PST) Received: from powell.devork.be (2a02-8388-8480-1180-4c18-fc69-8d8c-22b5.cable.dynamic.v6.surfer.at. [2a02:8388:8480:1180:4c18:fc69:8d8c:22b5]) by smtp.gmail.com with ESMTPSA id j9sm3708876ejf.105.2020.11.22.08.24.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 08:24:00 -0800 (PST) Sender: Floris Bruynooghe Received: (nullmailer pid 64533 invoked by uid 1000); Sun, 22 Nov 2020 16:23:59 -0000 From: Floris Bruynooghe To: notmuch@notmuchmail.org Subject: python-cffi: experiment with extracting cdefs from notmuch.h Date: Sun, 22 Nov 2020 17:23:52 +0100 Message-Id: <20201122162353.63824-1-flub@devork.be> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Message-ID-Hash: TYKTEQUIQ74KTZ2XLS5B7VLVNTA7SLWQ X-Message-ID-Hash: TYKTEQUIQ74KTZ2XLS5B7VLVNTA7SLWQ X-MailFrom: floris.bruynooghe@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=CR1USeLU; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 0.99 X-TUID: pkpAO6+cn8b4 Hi, This is mostly an experiment because I got tired of copying the C function defs from notmuch.h (in other words this was yak shaving while I intended to see if I could get notmuch_database_get_directory supported). I'm not convinced this is better that what we had before to be honest, but am curious what other people think of this approach. In deltachat we do actually use this mechanism and it works nicely, but there we don't have to deal with deprecated functions which is what makes this ugly here. Independenly maybe the changes to the makefile and README are useful anyway. I don't think the way this was build before always used the right lib version, I think for running T391 we probably want to compile with an RPATH. Cheers, Floris